Sorting text tabular type data
Joel Hammer
Joel
Mon May 17 11:37:07 PDT 2004
I find there are few tasks involved in editing text files you can't do
with sed, cut, grep, sort, and tr. When writing a sed script, it is
important to note that you can have multiline scripts and loops with
yes/no decisions, making sed almost like a "real" programming language.
Ignore those fancy one liners. They just cause confusion and awe but don't
really solve your problem (IMHO).
Joel
On Mon, Sep 02, 2002 at 04:51:07PM -0700, stayler wrote:
> Ok,
>
> I think this one does most of the trick. Thanks Joel for putting me on
> the right track. Now its time for awk I think.....
>
> sed "s/ \{1,30\}/,/g" file
>
> stayler
>
>
>
> On Mon, 02 Sep 2002 15:58:12 -0700 (PDT), 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
> >
>
>
> _______________________________________________
> 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