//View Tip #388
Similar Tips
» Close shell keeping all subprocess running
» Find and replace with backup
» Loop over files with spaces in the name
» Zero files
» Find and Grep


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
echo Bef = $((`cat /home/$USER/.bash_history | sort | uniq | wc -l`*100/`cat /home/$USER/.bash_history | wc -l`))%

View Comments »


Add your comment

Comments are currently disabled
Changing /home/$USER with $HOME will work for root user and in other OS like MacOS ;-)
Posted 2008-11-05 19:24:37
18% for me. Had to modify it to capture all bash histories, because I use screen and multiple architectures.
Posted 2008-11-13 11:34:38

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit