Substitua o texto por sed
sed -i 's/old-text/new-text/g' input.txt
Clear Caterpillar
sed -i 's/old-text/new-text/g' input.txt
#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"