Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 filesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started