[Techtalk] real life kewl text-processing and regexps samples wanted

Aaron Malone aaron at munge.net
Sat Jan 10 00:59:46 EST 2004


On Sat, 10 Jan 2004 02:42:54 +0100
"R. Daneel Olivaw" <linuxchix at r-daneel.com> wrote:
> you should try 'du -c' or 'du --total', this sums it all up ;)

But if you're dealing with large numbers of files, you can exceed the
maximum argument length.  The awk solution works with arbitrarily large
sets and odd constructions, e.g. 'find ~/Maildir -ctime +30 -type
f|xargs du -k|awk(etc)'. ;) And of course, it's useful for other cases
as well.

-- 
Aaron Malone
aaron at munge.net


More information about the Techtalk mailing list