Created
August 17, 2019 18:14
-
-
Save 1271/131ed54adfff0032112b3a705b921e41 to your computer and use it in GitHub Desktop.
Clear bash history dubles
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
cat ~/.bash_history | awk '!($0 in a) {a[$0];print}' > ~/.bash_history.tmp && mv -f ~/.bash_history.tmp ~/.bash_history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment