Linux Tools Lab 3

(File: lab3.data)

Mike Harrington:(510) 548-1278:250:100:175

Christian Dobbins:(408) 538-2358:155:90:201

Susan Dalsass:(206) 654-6279:250:60:50

Archie McNichol:(206) 548-1348:250:100:175

Jody Savage:(206) 548-1278:15:188:150

Guy Quigley:(916) 343-6410:250:100:175

Dan Savage:(406) 298-7744:450:300:275

Nancy McNeil:(206) 548-1278:250:80:75

John Goldenrod:(916) 348-4278:250:100:175

Chet Main:(510) 548-5258:50:95:135

Tom Savage:(408) 926-3456:250:168:200

Elizabeth Stachelin:(916) 440-1763:175:75:300

The database above contains the names, phone numbers, and money contributions to the party campaign for the past three months.

  1. Print all the phone numbers.

  2. Print Dan's phone number.

  3. Print Susan's name and phone number.

  4. Print all last names beginning with D.

  5. Print all first names beginning with either a C or E.

  6. Print all first names containing only four characters.

  7. Print the first names of all those in the 916 area code.

  8. Print Mike's campaign contributions. Each value should be printed with a leading dollar sign; e.g., $250 $100 $175.

  9. Print last names followed by a comma and the first name.

  10. Print all lines that end in a space, followed by three digits, using the POSIX character class.

  11. Write an awk script called facts that:

    1. Prints full names and phone numbers for the Savages.

    2. Prints Chet's contributions.

    3. Prints all those who contributed $250 the first month.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.15.154