Linux OS Editors Question:

Which is the correct syntax for sed on command line?
a) sed [options] '[command]' [filename]
b) sed '[command]' [options] [filename]
c) sed [filename] [options] '[command]'
d) sed '[command]' [filename] [options]

Linux Editors Interview Question
Linux Editors Interview Question

Answer:

a) sed [options] '[command]' [filename]


Previous QuestionNext Question
If any sed command does not specify any address then the command is applied to:
a) each input line
b) none of the input line
c) last input line
d) none of the mentioned
Which command sets the number for all lines?
a) :set li
b) :set ln
c) :set nu
d) :set nl