Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
sed up to first match
Irbin B.
Programming language:
Shell/Bash
2021-07-03 10:10:46
0
Q:
sed up to first match
Mahek Pandya
Code:
Shell/Bash
2021-03-18 04:14:58
sed '/[match]/q' file.txt #Include q option at the end to grep untilmatch only
0
Tags
first
Related
sed from match to end of file
regex last match
get until last match
sed print from match to end of file
sed until first match
match first word regex
awk uppercase first character
sed replace from match
New to Communities?
Join the community