Question: Write a bash script, called phone, that works as a simple phone directory. The script will output the full name and phone number of each

Write a bash script, called phone, that works as a simple phone directory. The script will output the full name and phone number of each matched record. phone"string" > where string is a name(first name or last name) and fileName is the phone database. A sample phone data file for example, phoneData.txt, is shown below. Each record in the file is made of a phone number and a This file could be used to test your scri person's name Tom john Sam Smith Tina Wu Jerry Seinfield Imran Haque Sandy Anderson Tina Hilton Satish Sharma BigFoot ShortTail (999) 000-1111 (206) 123-4567 (519) 999-1234 (514) 999-8765 (406) 984-6789 (519) 254-8796 (406) 657-8799 (416) 944-4675 (519) 544-5678 Hint: use grep with filename A sample run is shown below % phone Usage: phone
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
