![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: use regex match from file grepby delirium (Chaplain) |
on Jun 11, 2004 at 12:16 UTC ( [id://363387]=note: print w/replies, xml ) | Need Help?? |
This is a great job for a one-liner and the post-match variable: perl -ne "print $' if /^tag\: /" file.txt
In Section
Seekers of Perl Wisdom
|
|