Nochmal bash+sort

Thomas Moritz <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization unorganisiert
Message-ID <[email protected]>
Hallo zusammen,
zu frueh gefreut. Die Feinheiten merkt man doch erst spaeter.
Als Ergebnis der Sortierung sollte folgendes Ergebnis rauskommen:
(Das ist nur ein Beispiel. Das 2. Feld ist _nur_ zur Demo und hat im 
Original verschiedenste Inhalte)

aa|0
aa-1|1
aa-2|2
aa-d|3
aa-e|4
aab|5
aac|6
b|7

LANG=POSIX sort -t"|" +0 x.txt    liefert 12345607
LANG=POSIX sort -t"|" -d +0 x.txt liefert 01256347

Wie koennte ich noch sortieren, um mein gewuenschtes Ergebnis zu 
erreichen? (und nein, nach Feld 2 darf ich nicht sortieren)

MfG Th. Moritz
-- 
Wissen ist Macht! Nichts wissen macht auch nichts, ...

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.