put a word at the beginning of every line and at the end of every line linux code example
Example 1: sed add word to end of line
sed 's/.*/&:80/' abcd.txt >abcde.txt
Example 2: add string at the end of each line
sed 's/$/:80/' ips.txt > new-ips.txt