in reply to Re: Break one liner command line script after first match
in thread Break one liner command line script after first match
Hi,
as you showed it with your solution: Be aware of the subtle difference between:
perl -ne'/(data)/ && print $1 and last' file.txt perl -ne'/(data)/ && print $1 && last' file.txt
That may bite someone (by the way: I was bitten ;-) )
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Break one liner command line script after first match
by 2teez (Vicar) on Oct 30, 2013 at 13:24 UTC | |
by McA (Priest) on Oct 30, 2013 at 13:32 UTC |