a) print the lines containing the word 'google' in file old.txt
c) sed '/^$/d' old.txt
a) sed 's/cat/mouce/g' old.txt > new.txt
c) [address range]/d
b) sed reads from standard input
b) save the data for later retrieval
Explanation:
To copy the each line of input, sed maintains the pattern space.
8. What is sed?
a) a non-interactive stream editor
b) an IDE
c) a hex editor
d) none of the mentioned
a) a non-interactive stream editor
a) sed [options] '[command]' [filename]
b) autoindentation can be set using the command ':set ai'
a) moves screen down one page
b) vi editor commands are not case sensitive
c) both (a) and (b)
Explanation:
The command 'q' just closes the file and 'wq' saves and closes the file.
a) yy
Explanation:
The command 'p' puts the copied text after the cursor.