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

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 % phone sam phoneData.txt Sam Smith (519) 999-1234 % phone Tina phoneData.txt Tina Wu (514) 999-8765 Tina Hilton (416) 944-4675

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 Databases Questions!