change contents of file with bash code example Example: change file content bash sed -i 's/search_string/replace_string/' filename