Previous Section  < Day Day Up >  Next Section

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.

    Previous Section  < Day Day Up >  Next Section