Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed up to first match

sed '/[match]/q' file.txt	
#Include q option at the end to grep untilmatch only
 
PREVIOUS NEXT
Tagged: #sed #match
ADD COMMENT
Topic
Name
8+2 =