Simple Sed Command
Tagged with: command, Linux, replace, sed
Change all occurrences of ‘one’ to ‘two’ in the file.txt file in the grep example, enter this:
sed 's/one/two/g' file.txt
Change all occurrences of ‘one’ to ‘two’ in the file.txt file in the grep example, enter this:
sed 's/one/two/g' file.txt