[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Recursively delete
- From: "Ben Yau" <byau cardcommerce com>
- To: <redhat-list redhat com>
- Subject: RE: Recursively delete
- Date: Thu Jan 15 17:40:03 2004
>
> >I would do tihs
> >
> >find . -type f -name "*.o" -print | more
> >
> >Do that first to see what you will be deleting. If it all looks
> good, then
> >
> >find . -type f -name "*.o" -exec rm -f () \;
> >or
> >find . -type f -name "*.o" -print | xargs rm -f
> >
> >(both will do the same thing, the second one is easier for me to
> remember).
>
> I guess it is easier, since it is {} not () that find uses to
> pass the found
> value.
>
:) Exactly my point .. I always get those messed up . Good catch
Ben
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]