Thursday, April 10, 2008

Meme du jour: shell history

Here's mine from my Ubuntu laptop:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' |sort -rn|head
121 cd
91 ssh
82 ls
46 vi
28 python
26 scp
16 dig
12 more
7 twistd
6 rm


Paddy3118 said...

Why it should not be done in a Python one-liner

- Paddy.

Jeff McNeil said...

I wish there was a good way to account for everything I do after I walk in and type:

$ emacs

Mail buffers, shell buffers, Python buffers, eval'd buffers, scratch buffers, w3m buffers, CTRL-META-thisthatandtheother commands.

About the only thing in my history are sudo commands needed when I have to change a system setting.

Modifying EC2 security groups via AWS Lambda functions

One task that comes up again and again is adding, removing or updating source CIDR blocks in various security groups in an EC2 infrastructur...