05-01-2010, 09:34 AM #1
1) find all files with a 2 or 3 or 4.jpg 2) delete those files
- Member Since
- Feb 25, 2010
Man, this is getting ridiculous. In Windows, this would be a simple search and destroy using DOS commands. In Mac, it's harder...
1) find all files in a specific directory with multiple folders in that directory that have a 2, 3, or 4.jpg in the name.
2) delete all those files
Apple support suggested spotlight for all files with a 2 in the name and said I could use *2.jpg but it didn't work. I'm trying "Unix/AIX"-like commands and nothing works. I've downloaded two freeware apps to do this and they don't work.
I don't care if I do this via Gui (but I have hundreds of these files so drag and drop is too tiring) or in the actual OS.
Thanks for your help.
05-01-2010, 10:10 AM #2
I'm no ace with terminal commands, but I'm quite confident this would be quite easily done. The terminal kicks the nuts off of the Windows DOS commands, that much I know. But besides that, it would be insanely simple to build an automator action to do this for you. Just run Automator, start a new workflow and add these actions (along with your custom criteria):
Ask for Finder Items
Get Folder Contents
Filter Finder Items
Move Finder Items to Trash
Works like a charm.
Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac » Adware Removal Guide | Uninstall MacKeeper
Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.
05-01-2010, 02:12 PM #3
I don't understand why your Finder search for "2" didn't turn up any results. Do you have it searching for file name or Contents? Maybe you just need to click on the file name filter. I just did it and turned up lots of files with a "2" in the title. You can filter the search results by file type or name and other such criteria.
Maybe it has to do with the OS you're running. Is it older? This search definitely works in SL.64GB iPhone 6, 64GB iPad Air 2.
Reminder: Please include your Mac's specs. This will make it much easier for the other members to assist you.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By westhoffb in forum Apple DesktopsReplies: 11Last Post: 07-19-2015, 12:23 PM
By lcosini in forum OS X - Operating SystemReplies: 2Last Post: 06-15-2015, 12:41 PM
By Tdub77 in forum OS X - Operating SystemReplies: 2Last Post: 06-12-2012, 11:43 PM
By PINOY_E90 in forum Switcher HangoutReplies: 3Last Post: 12-04-2009, 05:51 AM
By zarp3333 in forum Other Hardware and PeripheralsReplies: 6Last Post: 11-13-2003, 11:21 AM