sed from start to match code example
Example: sed from start to match
sed '/[match]/q' file.txt
#Include q option at the end to grep untilmatch only
sed '/[match]/q' file.txt
#Include q option at the end to grep untilmatch only