Created
June 22, 2016 18:00
-
-
Save mlehman/559fdb4f0fbbc4763c1ead43f3991866 to your computer and use it in GitHub Desktop.
history grep
This file contains hidden or 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
# utility function for your profile to search history | |
hgrep(){ | |
history | grep $1 | sort -k 2 | uniq -c -f 1 | sort | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment