|Perl Monk, Perl Meditation|
File::Find questionby FireBird34 (Pilgrim)
|on Feb 23, 2003 at 04:50 UTC||Need Help??|
FireBird34 has asked for the
wisdom of the Perl Monks concerning the following question:
Needed to do some mass deleting, and someone suggested this module. I have never used it before, so I'm comming here for some advice on it :) Anyway, this is what I need: Given multiple subdirectories in /path/to/directory, and in each subdirectory there are numerous files, what would be the best way to delete specified files ending in a given extension?
So if you missed that, as a simplified scenerio:
I would basically need *.b to be deleted, leaving the *.a and *.c in tact (NOTE: inside dir1, there might be another subdirectory, etc etc) Is there an easy way to get around this? Thanks for any input.