Exercise: Quizz

35 - What is the difference between running the sed 's/foo/bar/' <file> command and the sed -i 's/foo/bar/' <file> command?


The first command will replace only the first occurrence of 'foo', the second command will replace all occurrences.
The first command will not make any change to the file, the second will modify the file.
The first command is case-sensitive, the second is not.
The first command will ask for a confirmation before each substitution, the second will not.