find and replace a text using command code example Example: sed replace in file sed -i 's/foo/bar/g' hello.txt