If all you care about is the commands and not the order they were typed in, you could do this:
sort .bash_history | uniq
Anything more complicated that preserves the sequence of events would require a shell script that weeds out those commands that have previously occured.
Bookmarks