Mac OS X, Ubuntu, Unix Add a comma to the end of every line of a file in bash April 21, 2005 Add a comma to the end of every line of a file in bash: sed 's/$/,/' Read More