<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 November 2013 16:50, Stuart Ward <span dir="ltr"><<a href="mailto:stuart.ward@bcs.org" target="_blank">stuart.ward@bcs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On 7 November 2013 10:40, Alan Pope <span dir="ltr"><<a href="mailto:alan@popey.com" target="_blank">alan@popey.com</a>></span> wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow:hidden">awk '{print $1}' ~/.bash_history | sort | uniq -c<br>
| sort -rn | head</div></blockquote></div></div><div class="im"><br>~$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -rn | head<br></div>     75 git<br>     74 cd<br>     57 sudo<br>     39 tail<br>     37 ls<br>
     33 dig<br>     20 man<br>
     13 python<br>     13 curl<br>     12 cat<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Looks like I have been using git a bit recently...?<br></div></div></blockquote><div><br></div><div>Same here with ls and cd in front:<br>
<br>$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -rn | head<br>    407 ls<br>    283 cd<br>    217 git<br>    171 vi<br>    114 make<br>     53 dot<br>     52 sudo<br>     47 rm<br>     44 erl<br>     41 grep<br>
<br></div><div>The only reason why python is not up there is because I tend to do chmod +x on my python scripts. I also had a dot and Erlang frenzy recently (not together though).<br><br></div><div>What is also interesting is how it changes when you include the first parameter. The positions of "git status" and simple "ls" showing that I regularly need reminding what the hell I've just modified and what was in there in the first place:<br>
<br>$ awk '{print $1 " " $2}' ~/.bash_history | sort | uniq -c | sort -rn | head<br>    242 ls <br>     72 git status<br>     53 make <br>     53 dot -Tsvg<br>     50 vi Makefile<br>     43 git add<br>     41 vi test.sh<br>
     41 bash test.sh<br>     39 git commit<br>     33 cd ..<br><br></div><div>Bruno<br><br></div></div></div></div>