The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-11-2007
ennstate ennstate is offline
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Try this,
Code:
find / \( -name 'Thumbs.db' -o -name  'desktop.ini' \) -okay rm {} \;
Above command asks for confirmation before proceeding with rm.

To remove without any confirmation, use
Code:
find / \( -name 'Thumbs.db' -o -name  'desktop.ini' \) -exec /bin/rm {} \;

Thanks.
Nagarajan G
Reply With Quote