Re: [gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread Marco Calviani
Thanks Sergio, Neil and John. Following your help, i've managed to get
through it..

Regards,
MC

2006/2/15, John Jolet <[EMAIL PROTECTED]>:
>
>
>
> On 2/15/06 11:10 AM, "Marco Calviani" <[EMAIL PROTECTED]> wrote:
>
> > Hi list,
> >i know this is OT for this list, but it deals in general with linux.
> > I need to search and copy a list of files that end with a particular
> > extension and belong to a certain user: i've managed this part with
> >
> > find -name "*.C" -user username
> Find -name "*.C" -user username -exec cp {} /targetdir \;
> >
> > now i would like only these files copied to a certain directory.
> >
> > How is it possible to accomplish this?
> >
> > Thanks in advance,
> > MC
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread John Jolet



On 2/15/06 11:10 AM, "Marco Calviani" <[EMAIL PROTECTED]> wrote:

> Hi list,
>i know this is OT for this list, but it deals in general with linux.
> I need to search and copy a list of files that end with a particular
> extension and belong to a certain user: i've managed this part with
> 
> find -name "*.C" -user username
Find -name "*.C" -user username -exec cp {} /targetdir \;
> 
> now i would like only these files copied to a certain directory.
> 
> How is it possible to accomplish this?
> 
> Thanks in advance,
> MC


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread Neil Bothwick
On Wed, 15 Feb 2006 18:10:54 +0100, Marco Calviani wrote:

> find -name "*.C" -user username
> 
> now i would like only these files copied to a certain directory.

find -name "*.C" -user username -exec cp -p "{}" a/certain/directory/ ';'


-- 
Neil Bothwick

Windows will never cease.


signature.asc
Description: PGP signature


RE: [gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread Sergio Polini
Marco Calviani wrote:
>I need to search and copy a list of files that end with a particular
>extension and belong to a certain user: i've managed this part with
>
>find -name "*.C" -user username
>
>now i would like only these files copied to a certain directory.

You could try:

find -name '*.C' -user username -exec cp '{}' destdir ';'

HTH

Sergio







___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] [OT] find list of files and then copy them

2006-02-15 Thread Marco Calviani
Hi list,
   i know this is OT for this list, but it deals in general with linux.
I need to search and copy a list of files that end with a particular
extension and belong to a certain user: i've managed this part with

find -name "*.C" -user username

now i would like only these files copied to a certain directory.

How is it possible to accomplish this?

Thanks in advance,
MC

-- 
gentoo-user@gentoo.org mailing list