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](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66dd9338836b9_17666dd933814896.jpg)
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
Get step-by-step solutions from verified subject matter experts
