sed insert line before end of file code example Example: sed add word to end of line sed 's/.*/&:80/' abcd.txt >abcde.txt