Re: dpkg-awk
Hallo,
Am Sonntag, 14. Nov 2004, 22:21:33 +0100 schrieb Klaus Becker:
>
> # dpkg-awk "Status: .* installed$" -- Package Installed-Size| awk 'print $2' |
> egrep -v '^$' | xargs -n2 echo | perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg
> awk: print $2
> awk: ^ syntax error
Probier mal
awk '{ print $2}'
Den nachfolgenden `egrep' könntest Du Dir schenken z. B.
durch
awk '/^$/ { next } { print $2}'
awk '/./ { print $2}'
Gruß
Bertram
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
Reply to:
- Follow-Ups:
- Re: dpkg-awk
- From: Bertram Scharpf <lists@bertram-scharpf.de>
- References:
- dpkg-awk
- From: Klaus Becker <colonius@free.fr>