Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Aaron Peterson on 12/6/2008 3:05 PM:
> Ultimately, I find it annoying that more options are needed than this:
> find "*want*" | du
> For the utilities to work properly they would need to know their
> context and I believe that everybody agrees that it's not the
> utilities job to get that complicated.
>
> I'm wondering how hard it would be to have a new shell that would
> use context to interpret the command like this:
> find -iname "*want*" -type f -0 | du --files0-from -
Nothing stops you from writing a shell script that wraps your common
command sequences in something shorter to type:
$ cat mydu
#!/bin/sh
# Usage: mydu PATTERN
# Determine the disk usage of all regular files located in `.'
# or below, with a case-insensitive match to the shell glob PATTERN.
find -iname "$1" -type f -print0 | du --files0-from -
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkk7CA4ACgkQ84KuGfSFAYDYzwCgo4ThcUwfc+DHE5qpzMPJ9hWd
FQYAniWf5rjDMBrVKGk0HNKe5lQto6NL
=sLpS
-----END PGP SIGNATURE-----