linux add string to end of line code example Example: add string at the end of each line sed 's/$/:80/' ips.txt > new-ips.txt