on Fri, Dec 19, 2003 at 10:53:35AM -0500, Derrick 'dman' Hudson (dman@dman13.dyndns.org) wrote:
> Another option, not yet given, is :
>
> find . -name \*.jpg | xargs rm
>
>
> Read the manpages for find and xargs. find lists all
> files/directories matching the given criteria on stdout. xargs reads
> stdin and executes the specified command on the arguments found on
> stdin.
I'd recommend the 'print0/-0' arguments to find & xargs, respectively.
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
We need a miracle, it's very important.
- Princess Bride
Attachment:
pgpLEoerP6Gqn.pgp
Description: PGP signature