sed replace in file same file code example
Example 1: sed replace in file
sed -i 's/foo/bar/g' hello.txt
Example 2: sed replace in multiple file
sed -i 's/abc/xyz/g' xaa1 xab1
sed -i 's/foo/bar/g' hello.txt
sed -i 's/abc/xyz/g' xaa1 xab1