⟩ Which command identifies the resource of a command? a) type b) typeset c) select d) source
a) type
a) type
Which command is used to replace word 'cat' (already present in the file) with 'mouse' at all places in a file 'old.txt' and save the result in a new file 'new.txt'? a) sed 's/cat/mouce/g' old.txt > new.txt b) sed 's/cat/mouse' old.txt new.txt c) sed '/s/cat/mouse/g' old.txt new.txt d) sed '/s/cat/mouse' old.txt > new.txt
Which sed command deletes the specified address range a) [address range]/s b) [address range]/p c) [address range]/d d) [address range]/y
If no file is specified in sed command then a) sed command will not work b) sed reads from standard input c) sed reads the data already present in buffer d) it is necessary to provide the filename
Sed maintains the hold space (a buffer) to a) copy the each line of input b) save the data for later retrieval c) both (a) and (b) d) none of the mentioned
What is sed? a) a non-interactive stream editor b) an IDE c) a hex editor d) none of the mentioned
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 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]
Which command sets the number for all lines? a) set li b) set ln c) set nu d) set nl
Which command shows all the abbreviations in vi editor? a) ab b) abb c) show d) none of the mentioned
In vi editor, which command reads the content of another file? a) read b) r c) ex d) none of the mentioned