Deleting files with same suffix

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

  1. minimacman macrumors newbie


    Oct 23, 2007
    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


    Oct 7, 2004
    In a Hell predominately of my own making
    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


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


Share This Page