Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
What to use for a FIND command?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="root" data-source="post: 620278" data-attributes="member: 51447"><p><strong>Standard UNIX find command is what you want.</strong></p><p></p><p></p><p></p><p>find / -name "*.vcf"</p><p></p><p>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.</p><p></p><p>If you also want to delete the files execute the following:</p><p></p><p>find / -name "*.vcf" -exec rm "{}" ";"</p><p></p><p>But be careful about this command since it will delete the files (not move them to trash) so they can't be recovered.</p></blockquote><p></p>
[QUOTE="root, post: 620278, member: 51447"] [b]Standard UNIX find command is what you want.[/b] 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]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
What to use for a FIND command?
Top