View Single Post
root

 
Member Since: Mar 22, 2008
Location: Waterloo, Ontario, Canada
Posts: 3
root is on a distinguished road
Mac Specs: Mac Pro, 2.8 Ghz, 8 core, 2 GB RAM, 2TB HDs

root is offline
Quote:
Originally Posted by bdmsb View Post
Spotlight doesn't find certain things. For example, I want to locate and delete all files on my hard disk that end with ".vcf". But Spotlight won't find them. Is there some 3rd party utility that works like the old FIND command and will find any file?
find / -name "*.vcf"

from the terminal will find all files that end in .vcf extension (starting at root of the filesystem). Look at the man page for find, you can construct more complex expressions and customize your search criteria further or execute a command on all files found etc.

If you also want to delete the files execute the following:

find / -name "*.vcf" -exec rm "{}" ";"

But be careful about this command since it will delete the files (not move them to trash) so they can't be recovered.
QUOTE Thanks