That's a little quick and dirty, since I don't closedir at all,
Use a lexical dirhandle and perl will close it for you.
perl -le"print for sort grep!/^\.\.?/, map{ opendir my($DIR), $_; rea +ddir $DIR } map glob, @ARGV" ./*
In reply to Re^2: multiple dir. grep
by BrowserUk
in thread multiple dir. grep
by Cockneyphil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |