I\'m on Linux command line and I have file with
127.0.0.1 128.0.0.0 121.121.33.111
I want
127.0.0.1:80 128.0.0.0:80 121.121
sed -i 's/$/,/g' foo.txt
I do this quite often to add a comma to the end of an output so I can just easily copy and paste it into a Python(or your fav lang) array