//View Tip #388
Similar Tips
» Find occurrences of a string in a large code base without firing
» another solution to #67
» Deleting whole words on a bash command line
» Alter autocompletion settings
» Diff Two Directories


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