Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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'

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions