Skip to content

Instantly share code, notes, and snippets.

@Temikus
Created November 14, 2012 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Temikus/4072762 to your computer and use it in GitHub Desktop.
Save Temikus/4072762 to your computer and use it in GitHub Desktop.
Print out everything between 2 patterns of text.
sed -n '/pattern1/,/pattern2/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment