Bash Scripting - Text Processing in Scripts
You wrote this sed command to replace 'foo' with 'bar' globally:
sed 's/foo/bar/' file.txt. But only the first 'foo' per line is replaced. What is the fix?