Sorting text tabular type data

stayler stayler
Mon May 17 11:37:07 PDT 2004


ooops,

This one deletes all the spaces but also puts a comma between every
character.

stayler


Close!
On Mon, 2 Sep 2002 19:26:33 -0400, Joel Hammer wrote:

>Piecea cake.
> sed "s/  */,/g"  file
>
>Translation: Look for a space followed by none or many spaces, and replace
>that pattern with a comma. Do this for very occurrence on the line.
>Joel



More information about the Linux-users mailing list