|The stupid question is the question not asked|
Re: Break one liner command line script after first matchby McA (Priest)
|on Oct 30, 2013 at 12:03 UTC||Need Help??|
why not just exiting after printing the matched line?
UPDATE: perl -ne'/(data)/ && print($1) && exit' file.txt