#You can replace like below #Linux sed -i 's/old-text/new-text/g' "/path/to/the-file" #MacOS sed -i "" 's/old-text/new-text/g' "/path/to/the-file"