ramblinpeck has asked for the wisdom of the Perl Monks concerning the following question:
would do it, but its printing out the whole line. Thanks for any help.perl -pe "if(m/script_id\'(.*)\'/){print $1;}" my_file.log
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More Command Line Regex
by tirwhan (Abbot) on Apr 07, 2006 at 14:11 UTC | |
|
Re: More Command Line Regex
by borisz (Canon) on Apr 07, 2006 at 13:59 UTC |