in reply to Re: Break one liner command line script after first match
in thread Break one liner command line script after first match

Or die!

perl -ne'/(data)/ && die $1' file.txt