Could you please give another realworld example of using xargs and your definition of it. I had a glance through man xargs, but I enjoy input from humans that use it as well. :)
Thanks. ----- Original Message ----- From: "David S. Jackson" <[EMAIL PROTECTED]> To: "mike" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 10:25 AM Subject: Re: Shell guru needed. > On Thu, Jan 02, 2003 at 08:03:37PM -0500 mike <[EMAIL PROTECTED]> wrote: > > Hey guys. heres the skinny. I have a huge library and i want to > > organize it. I want find to go through recursively, and move any "pdf" > > files it finds to a certain directory. I need an example piece of > > script on how i would confront this. It will save me hours if not days > > so thanks in advance. > > Can't believe no one has used xargs yet... > > find /path/to/messydir -name '*.pdf' -type f | xargs -I % mv \ > /path/to/messydir/% /path/to/newdir/% > > -- > David S. Jackson [EMAIL PROTECTED] > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Don't worry about the world coming to an end today. > It's already tomorrow in Australia. -- Charles Schulz > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message