Question: need help on linux problems 2. (10 points] Use grep to find all of the lines in some files that contain the string tomato. Your

need help on linux problems

need help on linux problems 2. (10 points] Use grep to find

2. (10 points] Use grep to find all of the lines in some files that contain the string "tomato". Your output will display the line numbers of the matching lines. For this one, use one or more filenames in place of the word some. Just read the manpage, this is simple. In this, some does not always mean use wildcards. I could just list four files on the command line. But I expect to see a line that shows that you tried it with more than one file at a time. 3. [10 points Use grep and wc to count the number of lines in some files that do NOT contain the word "pepper". You should not use grep's "cc" option because I want a single line of output from the command with a total line count regardless of the number of files processed at one time. Note: This will require a pipe. It will very definitely NOT require any temporary files. 2. (10 points] Use grep to find all of the lines in some files that contain the string "tomato". Your output will display the line numbers of the matching lines. For this one, use one or more filenames in place of the word some. Just read the manpage, this is simple. In this, some does not always mean use wildcards. I could just list four files on the command line. But I expect to see a line that shows that you tried it with more than one file at a time. 3. [10 points Use grep and wc to count the number of lines in some files that do NOT contain the word "pepper". You should not use grep's "cc" option because I want a single line of output from the command with a total line count regardless of the number of files processed at one time. Note: This will require a pipe. It will very definitely NOT require any temporary files

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!