Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed from start to match

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