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

#1 trotski  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 151
  • 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

#2 KevinADC  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 27
  • View blog
  • 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
Was This Post Helpful? 0
  • +
  • -

#3 trotski  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 151
  • 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!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1