hi,
need help in writing a script in perl.
requirement :
- Search for the files in a particular folder
- search for a string in the file names
- Delete the file which matches the string.
Ex: if the folder is C:\TEST
and the folder has 5 files like
2009ABCG.txt
2009MNO.txt
5241AAA.txt
1111aaa.txt and
2009PQR.txt
the matching string is "2009", then i want to delete all the files with the names %2009% i.e files 2009ABCG.txt,2009MNO.txt and 2009PQR.txt should be deleted from the folder C:\TEST