Hi, was hoping someone could help.
I want to remove some directories:
.Any help would be greatly appreciated.
Basically, I want to remove all directories with Capital letters in this
directory. Make sense.
Here is my script, looks like it's working but it's not removing all the
directoriesopendir(HERE, '.');
@AllFiles = readdir(HERE);
foreach $Name (@AllFiles) {
if (-f $Name) {next}
if ((-d $Name) and ($Name =~ /^[A-Z]+$/)) {rmdir '$Name'}
Thanks.
Chris
- Re: rmdir Porter, Chris
- Re: rmdir Maxim Berlin
- FW: rmdir Porter, Chris
- Re: FW: rmdir Maxim Berlin
- FW: FW: rmdir Porter, Chris
- Re: FW: rmdir Me
- Re: FW: rmdir Michael Fowler
- RE: FW: rmdir Porter, Chris
- Re: FW: rmdir Michael Fowler
- RE: FW: rmdir Porter, Chris
