UUGRN

Re: awk Sortierung

From
Michael Lestinsky <michael.lestinsky@...>
Date
Am 17.11.'02 schrieb Raimund.Kohl@...:
> ich habe eine reine Texttabelle mit den Feldern "Vorgang" "Datum" Betrag1"
> "Betrag2". Die Einträge sind ungeordnet. Wie mache ich es, dass 'gawk'
> die ganze Tabelle an Hand von $2 sortiert?

Hilft dir vielleicht sort(1) anstatt awk?

-k POS1[,POS2]
start a key at POS1, end it *at* POS2 field numbers
and character offsets are numbered starting with
one (contrast with zero-based +POS form)

Bye
Michael

--
Michael Lestinsky                   Max-Planck-Institut fuer Kernphysik
michael.lestinsky@...     Saupfercheckweg 1; 69117 Heidelberg
Phone +49 6221 516-516              http://www.mpi-hd.mpg.de

Thread

In reply to: awk Sortierung Raimund.Kohl_at_freenet.de <Raimund.Kohl@...>

Follow-ups: