Question: Using the awk command, Print all the First Names. Print phone numbers for Tom and Frodo Print Peregrin's name and phone number area code. Print

Using the awk command,
Print all the First Names.
Print phone numbers for Tom and Frodo
Print Peregrin's name and phone number area code.
Print all phone numbers in the 408 area code.
Print all Last names beginning with either a B or D
Print all first names containing four or less characters.
Print the first names of all those in the 916 area code.
Print Sacharissa's campaign contributions. Each value should be printed with a leading dollar sign; e.g., $250 $100 $175.
Print last names followed by a comma and the phone number. Be careful of the last names's format.
Write an awk script called facts to do the following (MUST be an awk script not just a bash script or commands on the commandline)
Prints first name of the Tooks followed by their total campaign contributions .
Prints "Bullroarer"'s contributions.
Prints all those who contributed over $175 for their last contribution
The database contains the names , phone numbers , and money contributions to the party campaign for the past three months.
Print the first and last names of those who contributed more than $110 in the last month.
Print the last names and phone numbers of those who contributed less than $75 in the first month.
Print the first names of those who contributed between $75 and $150 in the first month.
Print the first and last names of those who contributed less than $700 over the three-month period.
Print the first names and first letter of the last name of those with an average monthly contribution greater than $100.
Print the last name of those not in the 916 area code.
Print each record preceded by the number of the record.
Print the name and total contribution of each person.
Add $10 to Tiffany Aching's first contribution.
Change Samwise Gamgee's name to Sean Astin
what's included in the file
awk.data
Samuel Vimes:(510)548-1278:250:100:175
Ponder Stibbons:(408)538-2358:155:90:201
Angua von berwald:(206)654-6279:250:60:50
Susan Sto Helit:(206)548-1348:250:100:175
Tiffany Aching:(206)548-1278:15:188:150
Sacharissa Cripslock:(916)343-6410:250:100:175
Adora Belle Dearheart:(406)298-7744:450:300:275
Frodo Baggins:(206)548-1278:250:80:75
Tom Bombadil:(916)348-4278:250:100:175
Peregrin Took:(510)548-5258:50:95:135
Samwise Gamgee:(408)926-3456:250:168:200
A.A. Milne:(916)440-1763:175:75:300
Antoine de Saint-Exupery:(123)978-6432:250:100:175
Adalgrim Took:(345)978-7684:4673:100:467
Bandobras "Bullroarer" Took:(453)978-3534:6753:368:4673
Belladonna Took:(123)978-5754:356:247:175
Eglantine Took:(123)978-3574:473:475:4367
Mirabella Took:(345)978-2677:783:563:175
Ferumbras III Took:(563)978-753:250:100:3457
Gerontius Took:(574)978-8535:535:678:4562

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!