awk '!x[$0]++' .bash_history > .bash.tmp && mv -f .bash.tmp .bash_history