shell command add to end of line 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
sed 's/.*/&:80/' abcd.txt >abcde.txt
sed 's/$/:80/' ips.txt > new-ips.txt