[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Umsortieren des Inhaltes einer Textdatei



On 05/04/2009 10:36 AM Martin Steigerwald wrote:
> Am Montag, 4. Mai 2009 schrieb Pascal Volk:
>> cat textdatei.txt && sort -n textdatei.txt
>> /pfad/zur/datei/087 xxxx
>> /pfad/zur/datei/034 xxxx
> 
> Wozu das cat?

Hallo,

das cat hatte ich verwendet, um den 'unsortierten' Inhalt auszugeben.
Wäre ich scharf auf richtig "useless use of cat", hätte es mindestens so
ausgesehen: `cat textfile.txt | sort -n`, wenn nichts sogar so:
`cat textfile.txt | sort -n | cat`

Wäre der Inhalt vorab schon nach dem Dezimalwert an x. Stelle sortiert
gewesen, hätte ich auch behauten können: Sortiere mit:
	`cat textfile.txt`


Gruß
Pascal
-- 
The trapper recommends today: c01dcafe.0912417@localdomain.org


Reply to: