I have been struggling to answer these questions and would really appreciate hel
ID: 3750112 • Letter: I
Question
I have been struggling to answer these questions and would really appreciate help to answer them. Thank you!
Question #12: which flag to grep causes it to print matching lines without numbers? 0-1 ONo flag needed; this is the default behavior Question #13: Which is a grep-like regular expression which will match lines that include the substring "doh"? Cannot be done Odoh *doh [doh] Question #14: What does "sed" do? Selects some lines from the input to pass to the output. OShows only the last few lines of output. Breaks up lots of output into page-size chunks OIndividually edits each line of input. Re-arranges input lines OShows only the first few lines of output. Transforms input characters before passing them to output. Question #15: Which flag to grep causes it to consider upper-case different than lower-case? O-i 0-1 ONo flag needed; this is the default behavior -n Question #16: I have a program that prints out data in four columns, separated by spaces. I want to remove the spaces and cram all four columns together what command will work? sed af.// grep-v'' Oseds/ // OCannot be done None of the other answers is correct grep -vg'' Question #17: The commands "vi", "sed , and grep all use the same format for regular expressions. Which line below would match [Aejm ? I could not, would not, on a boat. OI do not like them in a box I do not like them with a mouse OI will not, will not, with a goat OI will not eat them on a train. OI do not like them with a fox OI will not eat them in the rain OI will not eat them in a houseExplanation / Answer
Solution:
This solution having explanation ,proper reason for true/false,
and examples for each one for your clear and better understanding.
Explanation :
before going to direct answer let's first understand the grep.
Grep is a unix/Linux operating system command that is used to find files having a given character ,
search files ,search words also allow regular expression for a string to be allowed etc.
There are many flags used to greap.
Now let's see the answer for given question:
12. -c or --count
This flag is used to print matching lines without numbers.
13.*doh*
Because
before doh there may be anytihng and also after doh there may be anything .
So atleast doh will be substring.
14.individually edit each line of input
sed is stream editior that is used to substitue ,replacec search insert delete the fiels.
15. -i
-i flag is used for above to differ upper case to lower case.
since everyting is provided for better and clear understanding .
However further if any difficulty in understanding the above then feel
free to ask.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.