* [gentoo-user] [OT] find list of files and then copy them
@ 2006-02-15 17:10 Marco Calviani
2006-02-15 17:28 ` Neil Bothwick
2006-02-15 19:14 ` John Jolet
0 siblings, 2 replies; 5+ messages in thread
From: Marco Calviani @ 2006-02-15 17:10 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-user] [OT] find list of files and then copy them
@ 2006-02-15 17:20 Sergio Polini
0 siblings, 0 replies; 5+ messages in thread
From: Sergio Polini @ 2006-02-15 17:20 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [OT] find list of files and then copy them
2006-02-15 17:10 Marco Calviani
@ 2006-02-15 17:28 ` Neil Bothwick
2006-02-15 19:14 ` John Jolet
1 sibling, 0 replies; 5+ messages in thread
From: Neil Bothwick @ 2006-02-15 17:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [OT] find list of files and then copy them
2006-02-15 17:10 Marco Calviani
2006-02-15 17:28 ` Neil Bothwick
@ 2006-02-15 19:14 ` John Jolet
2006-02-15 19:34 ` Marco Calviani
1 sibling, 1 reply; 5+ messages in thread
From: John Jolet @ 2006-02-15 19:14 UTC (permalink / raw
To: gentoo-user
On 2/15/06 11:10 AM, "Marco Calviani" <marco.calviani@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [OT] find list of files and then copy them
2006-02-15 19:14 ` John Jolet
@ 2006-02-15 19:34 ` Marco Calviani
0 siblings, 0 replies; 5+ messages in thread
From: Marco Calviani @ 2006-02-15 19:34 UTC (permalink / raw
To: gentoo-user
Thanks Sergio, Neil and John. Following your help, i've managed to get
through it......
Regards,
MC
2006/2/15, John Jolet <john@jolet.net>:
>
>
>
> On 2/15/06 11:10 AM, "Marco Calviani" <marco.calviani@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-15 19:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-15 17:20 [gentoo-user] [OT] find list of files and then copy them Sergio Polini
-- strict thread matches above, loose matches on Subject: below --
2006-02-15 17:10 Marco Calviani
2006-02-15 17:28 ` Neil Bothwick
2006-02-15 19:14 ` John Jolet
2006-02-15 19:34 ` Marco Calviani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox