Sorting text tabular type data
Joel Hammer
Joel
Mon May 17 11:37:07 PDT 2004
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
On Mon, Sep 02, 2002 at 03:58:12PM -0700, stayler wrote:
> Here is a small example of one of the files.
>
> K7ICW SINGLE-OP ALL HIGH NV 13125
> K7XC MULTI-LIMITED NV 1856
> KC6UCN MULTI-LIMITED NV 8477
> N6MI ROVER NV 3968
> N7LQ MULTI-UNLIMITED ALL HIGH NV 82128
> N7ROJ ROVER NV 7722
> NW7O ROVER NV 2847
> W7PW/R ROVER NV 12
> WB6YIY SINGLE-OP ALL LOW NV 1020
>
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
More information about the Linux-users
mailing list