linux command to find and replace chars in a string code example
Example 1: ubuntu command line replace word in files
sed -i 's/original/new/g' file.txt
Example 2: sed replace in file
sed -i 's/foo/bar/g' hello.txt
sed -i 's/original/new/g' file.txt
sed -i 's/foo/bar/g' hello.txt