Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get history list without duplicates
cat ~/.bash_history | nl | sort -k 2 | awk '{$1=$1};1' | uniq -f1 | sort -n | cut -d ' ' -f 2- > ~/.bash_history_noduplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.