Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

minimacman

macrumors newbie
Original poster
Oct 23, 2007
10
0
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:
 

JNB

macrumors 604
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".
 

Attachments

  • Picture 2.png
    Picture 2.png
    85.2 KB · Views: 66

minimacman

macrumors newbie
Original poster
Oct 23, 2007
10
0
Thanks - I appreciate the warning. One false move and it's good night Vienna!

Oliver
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.