replace text with sed
sed -i 's/old-text/new-text/g' input.txt
how to replace string in a json sed
#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"
Source: stackoverflow.com