― Johnny B Was Quizzical (Johnney B), Wednesday, 5 April 2006 12:21 (twenty years ago)
― Miss Misery xox (MissMiseryTX), Wednesday, 5 April 2006 12:24 (twenty years ago)
Unless you're saying there aren't any line breaks?
― Treacle in a Flaming Wheelbarrow (kate), Wednesday, 5 April 2006 12:26 (twenty years ago)
sed -e 's/^(.*)$/\"\1\"/'
(I *think* that's right - I'm not sure if the " characters need a \ before them)
― Forest Pines (ForestPines), Wednesday, 5 April 2006 12:26 (twenty years ago)
― Ichigo (ex machina), Wednesday, 5 April 2006 12:27 (twenty years ago)
The rest you can guess.
― mark grout (mark grout), Wednesday, 5 April 2006 12:29 (twenty years ago)
― Forest Pines (ForestPines), Wednesday, 5 April 2006 12:35 (twenty years ago)
sed -e 's/\(.*\)/"\1"/' infile > outfile
even shorter (by one character!) is doing it in two stages
sed -e 's/^/"/;s/$/"/' infile > outfile
― koogs (koogs), Wednesday, 5 April 2006 12:38 (twenty years ago)
― Forest Pines (ForestPines), Wednesday, 5 April 2006 12:42 (twenty years ago)
― Forest Pines (ForestPines), Wednesday, 5 April 2006 12:43 (twenty years ago)
Anyway, all done. Thanks guys!
― Johnny B Was Quizzical (Johnney B), Wednesday, 5 April 2006 13:02 (twenty years ago)
― Britain's Obtusest Shepherd (Alan), Wednesday, 5 April 2006 13:07 (twenty years ago)
― Forest Pines (ForestPines), Wednesday, 5 April 2006 13:14 (twenty years ago)
(actually, you don't even need the -e in that sed line)
― koogs (koogs), Wednesday, 5 April 2006 13:15 (twenty years ago)