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