LAB 42: THE lookup SCRIPT

 <  Day Day Up  >  

LAB 42: THE lookup SCRIPT

  1. Create a file called datafile if it has not been provided for you on the CD. It will consist of colon -separated fields:

    1. First and last name

    2. Phone number

    3. Address (street, city, state, and ZIP)

    4. Birth date (04/12/66)

    5. Salary

  2. Put ten entries in your file. Write a script called lookup that will do the following:

    1. Welcome the user .

    2. Print the names and phone numbers for all the users in datafile .

    3. Print the number of lines in datafile .

    4. Tell the user good-bye .

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net