in reply to Re: Break one liner command line script after first matchin thread Break one liner command line script after first match
Or die!
perl -ne'/(data)/ && die $1' file.txt [download]