Skip to content

Instantly share code, notes, and snippets.

@aksinghdce
Created April 24, 2020 17:53
Show Gist options
  • Save aksinghdce/9d0e92cb7b7f9d7d538f6fc10957e12a to your computer and use it in GitHub Desktop.
Save aksinghdce/9d0e92cb7b7f9d7d538f6fc10957e12a to your computer and use it in GitHub Desktop.
Grep for pattern in one line file
grep -E -o ".{0,10}pattern.{0,10}" content.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment