Thursday, March 25, 2010

How to prepend a character to a line

sed 's/^/"/'

will prepend the double quotes to the beginning of the text. I had to copy paste the character ^ for this to work on my Mac. Could not find on the Mac keyboard.