Question: Part II: Multiple Choices, 5 points each 1. What is the output of the following sequence of bash commands: echo 'Hello World' | sed 's/$/!!!/g'

Part II: Multiple Choices, 5 points each 1. What is the output of the following sequence of bash commands: echo 'Hello World' | sed 's/$/!!!/g' a. !!!Hello World b. Hello!!! World c. Hello World!!! d.!!! e. No output on screen 2. Which awk script outputs the first field of lines that in the first five lines: a. 1 = 1 && NR >= 5 {print $1 } c. 1,5 { print $0 } d. {print $1 ) e. None of above 3. What is the output of following command line: echo good sed /Good/d' a. no output on screen b.good c. Good d. good Good e. None of above 4. Which awk script outputs all the lines where a plus sign + appears at the end of line? a. /^\+/{print $0} b./+$/{print $0) c./\+^$/{print $0) d./+$/{print $0) e. None of above 5. Which command delete only the first 5 lines of "file"? a. sed 'Id' file b. sed '1,5 p' file c. sed '5dd' file d. sed '5,$d' file e. sed '1,5d' file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
