CLT25: Durchleuchtet. Kommandos in der Bash-Historie wiederfinden

CLT25: Durchleuchtet. Kommandos in der Bash-Historie wiederfinden

I needed to remove all duplicates from ~/.bash_history, and since it contains the date and time for each command, I ended up with lots of dates and times with no commands (since they were duplicates and got removed).
And I didn't want to check 34k+ of lines manually. So, I wrote a Python script to solve that.
in case you're interested, here is the code: https://gitlab.com/ds.python/useful-scripts
#BASH #history #bashhistory #python #duplicates #duplicate #dedup #code #python3 #linux #gnulinux
How often do you clean your '~/.bash_history'?
How To Display Bash History Without Line Numbers #BashHistory #Linuxcommands #Linux
https://ostechnix.com/how-to-display-bash-history-without-line-numbers/