PERL Script to Delete a Specific File

Page 1 of 1

2 Replies - 1210 Views - Last Post: 14 February 2009 - 07:53 AM

#1 trotski

Reputation: 0
• Posts: 146
• Joined: 04-September 08

PERL Script to Delete a Specific File

Posted 14 February 2009 - 02:54 AM

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?
Is This A Good Question/Topic? 0

Replies To: PERL Script to Delete a Specific File

• D.I.C Regular

Reputation: 27
• Posts: 401
• Joined: 23-January 07

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

#3 trotski

Reputation: 0
• Posts: 146
• Joined: 04-September 08

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!