# Save suffixed file into a new file sed -e 's/$/suffix/' file > file.new # Edit file and overwrite with suffixed text sed -i -e 's/$/suffix/' file