Last active
May 26, 2020 01:41
-
-
Save matthewspear/1da08812f6856ab07a8589fae677e3f1 to your computer and use it in GitHub Desktop.
Find out which commands you use most on the command-line
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
history > history.txt | |
awk '{print $1}' ../history.txt > commands.txt | |
cat commands.txt | sort | uniq -c | sort -r > sorted_commands.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment