[Gllug] Small shell script challenge
David Damerell
damerell at chiark.greenend.org.uk
Tue Dec 16 14:01:22 UTC 2003
On Tuesday, 16 Dec 2003, Richard Jones wrote:
>Using something like:
>ls -lR dir | awk '{print $5}' | ....
>I can get a list of numbers (actually including some blank
>lines). What's the quickest way to add up those numbers?
You _could_ just use du, you know.
or, | perl -we 'while (<>) {$foo+=$_}; print $foo'
--
David Damerell <damerell at chiark.greenend.org.uk> flcl?
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list