[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Recursively delete



> 
> >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]