Hagbone has asked for the wisdom of the Perl Monks concerning the following question:
I'm relatively comfortable using perl's regex language, but have a feeling that command line items speak a different form of the regex-speak.
If I were using a direct perl regex, something like:
works. But a line like:if ($whatever =~ m~$logs/access_log\.\d+\.gz~) {#something}
Doesn't, and offers:open(TAR,"tar -czpf $target_file $logs/access_log\.d+\.gz |");
I'm hoping someone can point me towards a resource that will explain the nuances of using regex's within command line type syntax ....tar: /wwwusr/www1/woodweb/logs/access_log.d+.gz: Cannot stat: No such +file or directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Acceptable regular expressions within command line type syntax
by Thelonius (Priest) on Jun 06, 2003 at 16:24 UTC | |
|
Re: Acceptable regular expressions within command line type syntax
by sauoq (Abbot) on Jun 06, 2003 at 16:29 UTC | |
|
Re: Acceptable regular expressions within command line type syntax
by broquaint (Abbot) on Jun 06, 2003 at 16:15 UTC | |
|
Re: Acceptable regular expressions within command line type syntax
by Hagbone (Monk) on Jun 06, 2003 at 16:56 UTC | |
by Thelonius (Priest) on Jun 06, 2003 at 17:07 UTC | |
|
Re: Acceptable regular expressions within command line type syntax
by hardburn (Abbot) on Jun 06, 2003 at 16:15 UTC | |
|
Re: Acceptable regular expressions within command line type syntax
by pzbagel (Chaplain) on Jun 06, 2003 at 16:17 UTC |