The unlink glob() form recommended by boo_radley is necessary if you want to interpolate values from variables in the argument. The diamond operator will not interpolate correctly for filename globs.
Your foot is safe if the filename glob catches only the files you want. That is easier to review with globs than with true regexes, but care is still needed.
After Compline,
Zaxo
In reply to Re: unlinking multiple files at once
by Zaxo
in thread unlinking multiple files at once
by krose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |