Last active
November 5, 2021 11:45
-
-
Save jandahl/56c0fed4a4187413bb402bbe979bfd43 to your computer and use it in GitHub Desktop.
bash pipe to section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function section() { | |
sed -n "/${*}/,/^$/p" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment