Skip to content

Instantly share code, notes, and snippets.

@blgnksy
Last active October 22, 2020 13:52
Show Gist options
  • Save blgnksy/f8a1c690a58e621e30d954498dbbbb27 to your computer and use it in GitHub Desktop.
Save blgnksy/f8a1c690a58e621e30d954498dbbbb27 to your computer and use it in GitHub Desktop.
Grep
# (Lines after and before keyword)
grep -A5 -B5 keyword
# Find empty lines
grep -E --line-number --with-filename '^$' file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment