Deleting files with same suffix

Discussion in 'Mac Apps and Mac App Store' started by minimacman, Oct 26, 2007.

  1. minimacman macrumors newbie

    minimacman

    Joined:
    Oct 23, 2007
    #1
    Hi guys

    One last question before the weekend:
    In OS10.4.10 how can I delete, en masse, all the files in a particular folder with a specific suffix please?

    For example, how can I delete all the files in, say, a 'documents' folder with the suffix '.doc' while retaining files with other suffixes?

    Thanks in advance,
    Oliver :apple:
     
  2. JNB macrumors 604

    JNB

    Joined:
    Oct 7, 2004
    Location:
    In a Hell predominately of my own making
    #2
    1. Use the method below, or

    2. Launch Terminal, navigate to the desired directory, and rm *.doc Keep in mind, command-line entries are all-powerful, and you don't get a second chance. No "oopsies".
     

    Attached Files:

  3. minimacman thread starter macrumors newbie

    minimacman

    Joined:
    Oct 23, 2007
    #3
    Thanks - I appreciate the warning. One false move and it's good night Vienna!

    Oliver
     

Share This Page