---

real world FIND usage

find . -type f -size +10000 -exec ls -al {} ;
find . -atime +1 -type f -exec mv {} TMP ; # mv files older then 1 day to dir TMP
find . -name "-F" -exec rm {} ;   # a script error created a file called -F 
find . -exec grep -i "vds admin" {} ;
find . ! -name "*.Z" -exec compress -f {} ;
find . -type f ! -name "*.Z" ! -name ".comment" -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} ;
find . -user xuser1 -exec chown -R user2 {} ;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} ;
find . -exec grep -i "pw0" {} ;

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis