public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [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

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:10 [gentoo-user] [OT] find list of files and then copy them Marco Calviani
2006-02-15 17:28 ` Neil Bothwick
2006-02-15 19:14 ` John Jolet
2006-02-15 19:34   ` Marco Calviani
  -- strict thread matches above, loose matches on Subject: below --
2006-02-15 17:20 Sergio Polini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox