Hi all,
I am having trouble trying to delete unwanted files in a specific directory.
E.G. if i wanted the perl script to search a directory for all jpg photos that DID NOT have an HTML file associated with them and then delete those jpg photos:
/html - abc.htm, abc2.htm, abc3.htm
/html/images - abc.jpg, abc2.jpg, abc3.jpg, abc4.jpg, abc5.jpg
therefore need to delete abc4.jpg and abc5.jpg
does it make sense??
I am having trouble trying to delete unwanted files in a specific directory.
E.G. if i wanted the perl script to search a directory for all jpg photos that DID NOT have an HTML file associated with them and then delete those jpg photos:
/html - abc.htm, abc2.htm, abc3.htm
/html/images - abc.jpg, abc2.jpg, abc3.jpg, abc4.jpg, abc5.jpg
therefore need to delete abc4.jpg and abc5.jpg
does it make sense??