how to replace some string to another using sed code example Example: sed replace in file sed -i 's/foo/bar/g' hello.txt