adplus-dvertising
frame-decoration

Question

What is the correct syntax for using sed?

a.

sed options file(s)

b.

sed options ‘action’

c.

sed options ‘address action’ file(s)

d.

sed ‘action’ file(s)

Answer: (c).sed options ‘address action’ file(s)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the correct syntax for using sed?

Similar Questions

Discover Related MCQs

Q. Which one of the following command will be used for quitting after selecting 3 lines from file emp.lst?

Q. Which of the following command is used with sed for outputting as well as printing the selected lines?

Q. To suppress the behaviour of ‘p’ command, we use ____ option.

Q. The command $ sed -n ‘$p’ emp.lst will display the last line.

Q. Consider the following commands.

$ sed -n ‘1,2p’ emp.lst
$ sed -n ‘3,$!p’ emp.lst

The output of both commands will be same.

Q. Which option is used with sed for using multiple instructions?

Q. ____ option is used for taking instructions from a file.

Q. sed can also perform the substitution.

Q. Which one of the following is the correct syntax for performing substitution using sed?

Q. Which one of the following command is used for replacing | with : globally?

Q. To replace the string ‘director’ in the first five lines of file emp.lst with ‘manager’ we can use _____

Q. Which of the following characters are used with sed as anchoring characters?

Q. What will be the function of the following command?

$ sed ‘s/ *|/|/g’ emp.lst

Q. Basic regular expressions are divided into ______ categories.

Q. The interval regular expression uses the character _______

Q. Which one of the following command will be used for adding two spaces before every line in emp.lst?

Q. Which shortcut does sed offer to replace the string Linux with Red hat Linux?

Q. Which command will be used for selecting lines 3 to 10 from emp.lst?

Q. Which filter apart from perl, is the most powerful?

Q. Awk filter operates at field level.