Gentoo Archives: gentoo-user

From: Sergio Polini <sp_rm_it@×××××.it>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] [OT] find list of files and then copy them
Date: Wed, 15 Feb 2006 17:28:10
Message-Id: 20060215172024.24469.qmail@web25506.mail.ukl.yahoo.com
1 Marco Calviani wrote:
2 >I need to search and copy a list of files that end with a particular
3 >extension and belong to a certain user: i've managed this part with
4 >
5 >find -name "*.C" -user username
6 >
7 >now i would like only these files copied to a certain directory.
8
9 You could try:
10
11 find -name '*.C' -user username -exec cp '{}' destdir ';'
12
13 HTH
14
15 Sergio
16
17
18
19
20
21
22
23 ___________________________________
24 Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
25 http://mail.yahoo.it
26 --
27 gentoo-user@g.o mailing list