In my case, I believe the earlier suggestion:While it will probably do the trick, be aware that it is not equivalent. It will also match, e.g. "access_log.20dontsave.gz".will do the trick.open(TAR,"tar -czpf $target_file $logs/access_log.[0-9]*.gz |");
A glob of access_log.[0-9]*.gz is equivalent to a regex of /^access_log\.\d.*\.gz$/
In reply to Re: Re: Acceptable regular expressions within command line type syntax
by Thelonius
in thread Acceptable regular expressions within command line type syntax
by Hagbone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |