  | |  | rh-l] RE: Large number of files in single directory | rh-l] RE: Large number of files in single directory 2005-05-27 - By R P Herrold
Back On Fri, 27 May 2005, Mike Wooding wrote: >> or, in the correct directory: >> >> find -type f -a -exec rm {} \; >> >> will work > > Not as typed above: man find
Incorrect; it works here as written by me, 'tovrich
[herrold@(protected) ~]$ mkdir temp [herrold@(protected) ~]$ cd temp [herrold@(protected) temp]$ for i in `seq 1 5` ; do touch sample$i ; done ; ls sample1 sample2 sample3 sample4 sample5 [herrold@(protected) temp]$ find -type f -a -exec rm {} \; ; ls [herrold@(protected) temp]$
The -exec does not need further quoteing to protect the 'rm' in this context; -a is a conjunction operator
-R
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |