How do we create a simple PERL script that cd's to all sub folders in a folder specified and deletes a file with a specified name, for instance, x.conf?
PERL Script to Delete a Specific File
Page 1 of 12 Replies - 1864 Views - Last Post: 14 February 2009 - 07:53 AM
Replies To: PERL Script to Delete a Specific File
#2
Re: PERL Script to Delete a Specific File
Posted 14 February 2009 - 04:05 AM
Use the File::Find module. It comes with perl so nothing to install.
http://perldoc.perl.org/File/Find.html
http://perldoc.perl.org/File/Find.html
#3
Re: PERL Script to Delete a Specific File
Posted 14 February 2009 - 07:53 AM
Well, that gives me the idea of just using the search option in Konqueror. LOL! But thanks a lot, I couldn't have thought of it without the Find File keywords catching my eye!
Page 1 of 1