Results 1 to 3 of 3
  1. #1

    Member Since
    Feb 25, 2010
    1) find all files with a 2 or 3 or 4.jpg 2) delete those files
    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.

  2. #2

    Lifeisabeach's Avatar
    Member Since
    Sep 30, 2007
    The Republic of Neptune
    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.

  3. #3

    MYmacROX's Avatar
    Member Since
    Mar 17, 2009
    2008 15" MBP Yosemite, 2012 21.5" iMac Yosemite
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot find .jpg files in Finder
    By westhoffb in forum Apple Desktops
    Replies: 11
    Last Post: 07-19-2015, 12:23 PM
  2. Invisible files (find and delete)
    By lcosini in forum macOS - Operating System
    Replies: 2
    Last Post: 06-15-2015, 12:41 PM
  3. how to find out and delete these files?
    By Tdub77 in forum macOS - Operating System
    Replies: 2
    Last Post: 06-12-2012, 11:43 PM
  4. New Imac - how to find my jpg files
    By PINOY_E90 in forum Switcher Hangout
    Replies: 3
    Last Post: 12-04-2009, 05:51 AM
  5. how to find and delete temp files
    By zarp3333 in forum Other Hardware and Peripherals
    Replies: 6
    Last Post: 11-13-2003, 11:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts