//View Tip #388
Similar Tips
» CDPATH
» SSH Auto Complete
» Find and Grep
» Changing file extensions
» Manipulate Bash sockets using /dev/tcp

 

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 »



Comments 

Add your comment

CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.

Changing /home/$USER with $HOME will work for root user and in other OS like MacOS ;-)
Posted 2008-11-05 19:24:37
Otheus
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