RE: Recursively delete

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

 



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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux