Re: Einzeiler-Frage
On Monday 25 December 2006 00:41, Sandro Frenzel wrote:
> Hey Liste!
>
> [...]
>
> Und zwar lass ich mir einige Dateien mit
>
> skummy:/# cat /home/tester/tmp/ftp.out | grep new\ file | awk '{print
> $6}'
>
Ich denke, mit awk - ich mach's mal mit einem ls-Beispiel, weil ich nicht
weiß, wie in deinem ftp die columns sind:
erstmal also:
ls -l *txt >test.txt
dann
cat *txt |awk '/daten/{print $5, $9}'
bringt dann:
45 daten.txt, wobei 45 die filesize ist (wie bei ls -l halt)
Jauchzet, frohlocket :-)
Gebhard
--
Q: Why did the tachyon cross the road?
A: Because it was on the other side.
Reply to: