Textism


No one tagged me

16 Apr 2008, 10am

But as I am it seems now firmly in the post-relaunch probation period during which the author is tempted nay eager to participate in silly interthingy memes before sliding into the inevitable bullheaded yet oddly untenable above-all-that stance:

cudgel:~ history|awk '{a[$2]++} END{for(i in a){
printf "%5d\t%s \n",a[i],i}}'|sort -rn|head
  194   svn
   60   cd
   36   utx
   36   rm
   34   ssh
   33   ls
   17   mate
   17   gtx
   13   sudo
   11   mv

utx is a shell script that looks for anything new in the /img dir, does svn add and svn ci on those, before sshing into this server and doing svn up on any recent commits.

gtx logs into this server, dumps the textism database, logs out, rsyncs down the mysqldump and inserts it into the local copy.

I shall now tag Ford because I genuinely want to know.

In about twelve minutes, nyuuuuurd will be shouted from upstairs.

UPDATE andrewlkho on twitter points out a tidier way:

history|awk '{print $2}'|sort|uniq -c|sort -rn|head

This is a paid advertisement

Ads via The Deck