Last active
October 22, 2020 13:52
-
-
Save blgnksy/f8a1c690a58e621e30d954498dbbbb27 to your computer and use it in GitHub Desktop.
Grep
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
# (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