Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a UNIX command line that shows the count of the number of people in phones.dat with a phone number in the 757 area

image text in transcribed

1. Create a UNIX command line that shows the count of the number of people in phones.dat with a phone number in the 757 area code. Based on the sample phoneList.dat file, your output should be: 3 Note that you can't just echo the number shown in the sample phones.dat file like this: $ echo "3" 3 This echo would not work correctly for any data file of this same format. Another data file of the same format but with different contents might have 8,500 phone numbers in the 757 area code; another file might have 0. Figure out a command line that will come up with the right count for the number of phone numbers in the area code 757 no matter the contents of phones.dat. (You can assume that the file name is phoneList.dat and that you are searching for the 757 area code when you make your command line.) Hint: you can use piping and grep command to get this done

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Compare and contrast high- and low-load environments

Answered: 1 week ago

Question

=+ What topics are contained in the contracts?

Answered: 1 week ago

Question

=+Are they specific or general in nature?

Answered: 1 week ago