Question: Answer questions # 7 and 8 please. What commands to use to do the following using grep in linux. rite a single shell script which
rite a single shell script which uses grep to find out the following information about ap.txt: 1. Does the string "happy" appear in the file? 2. How many lines contain at least one occurrence of the string "soap"? 3. How many lines contain multiple occurrences of the string "soap"? 4. How many lines do not begin with a lowercase letter? 5. How many sentences end at the end of a line (the punctuation','?', or "' is the 6. 7. 8. last character in the line)? How many lines contain a number? How many lines contain a two-digit number? How many lines contain a nine-letter word
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
