Simple Sed Command
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