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