how to find and replace word using cat in ubuntu code example Example: ubuntu command line replace word in files sed -i 's/original/new/g' file.txt