ubuntu replace in file code example Example: ubuntu replace text in file sed -i 's/original/new/g' file.txt