Skip to content

Instantly share code, notes, and snippets.

@Yanovskiy
Created February 11, 2014 12:55
Show Gist options
  • Save Yanovskiy/8934341 to your computer and use it in GitHub Desktop.
Save Yanovskiy/8934341 to your computer and use it in GitHub Desktop.
sed remove between lines
gsed -ni '/PATTERN_START/{p; :a; N; /PATTERN_END/!ba; s/.*\n//g}; p' <input_file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment