Created
August 15, 2019 00:12
-
-
Save miguelmota/69727cac1452046899242b78cd802ab2 to your computer and use it in GitHub Desktop.
Bash sed select content inbetween start and end patterns
This file contains 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
# don't forget the comma in the middle | |
sed -n '/some_start_pattern/,/some_send_pattern/p' file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment