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