Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2003 10:55:09 -0500
From:      "Danny" <lists@brenius.com>
To:        <questions@freebsd.org>
Cc:        <deepbsd@earthlink.net>
Subject:   Re: Shell guru needed.(xargs question)
Message-ID:  <003301c2b340$7e473570$7801a8c0@afi>
References:  <200301030103.h0313b67012698@labs.unixhideout.com> <20030103152501.GA1925@sylvester.dsj.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <deepbsd@earthlink.net>
To: "mike" <mike@labs.unixhideout.com>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Friday, January 03, 2003 10:25 AM
Subject: Re: Shell guru needed.


> On Thu, Jan 02, 2003 at 08:03:37PM -0500 mike <mike@labs.unixhideout.com> 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                        dsj@dsj.net
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don't worry about the world coming to an end today.
> It's already tomorrow in Australia.  -- Charles Schulz
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003301c2b340$7e473570$7801a8c0>