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