I have 7 lines of text:
a
b
c
d
e
f
g
Now I want to add characters to the end of each line, to end up with:
a,
b,
c,
d,
e,
f,
g,
I found that I can use the "sed" command and run my selection through sed using "Filter through command" in Textmate
sed 's/$/,/'
Now, one question remains: how do I turn this into a Textmate command that takes input in some sort of way (so it knows what text to append)?
(My tries in doing this have proven unsuccessful)