Ady238 has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that now I need to modify it and add a clause, where if any *.jpg file is in use then the script leaves it and moves on to delete the next file. Thanks#!/usr/bin/perl unlink glob('C:/tmp/*/*.jpg'); unlink glob('*.jpg');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delete multiple files with a pattern
by Marshall (Canon) on May 31, 2012 at 08:18 UTC | |
|
Re: Delete multiple files with a pattern
by Anonymous Monk on May 31, 2012 at 07:06 UTC |