What is the output of the following sequence of bash command
What is the output of the following sequence of bash commands: echo \'Hello World\' | sed \'s.S.\'Welcome/g\' WelcomeHello world HelloWelcome World Hello WorldWelcome Welcome None of above Which awk command outputs the 5th field of lines that have at least five fields: 5 = 5 {print $5} $5! = \"\"/{Print $4}/$5! = = \"\"/{print $4} None of above What is the output on your screen after trying following command line: echo CSC3320 |sed -n \'s/csc/cse/p\' no output on screen CSc CCc 3320 CSC3320 None of above Which awk command outputs all lines where a dollar sign $ appears at the beginning of line?/^$/{print $0}/$$/{print $0}/$^/{print $0}/^S/{print $0} None of above Which command below delete the first 5 lines of \"file\"? scd \'5d\' file scd \'5p\' file scd \'1, 5 d\' file scd \'5, $d\' file None of above
Solution
[1]echo \'Hello world | sed \'s/$/welcome/g\'
answer : [c] Hello WorldWelcome
[2] [A] 5<=NF {print $5}
[3]echo CSC3320 | sed -n \'s/CSC/CSc/p\'
answer : [B] CSc3320
[4] C
[5] [c] sed 1,5d
