What’s your history? Lots of cats
Tuesday, September 23rd, 2008 | geek
Read this marvelous posting called “Show me your history” and decied to check my history (and thereby do a health status check on my life). So I copied the command:
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
and ran it through a not-so-pretty-filter. All in all the commands looks like this:
history | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head | awk ‘ { printf “ %s\n”, $0} ‘
So what have I been doing lately? This:
101 cd
71 ls
29 bzr
28 more
24 rm
24 make
17 cat
16 apt-cache
10 ssh
8 touch
A lot of cd is ok and pretty common I guess. That many ls?.. a bit strange. bzr, more, rm, make feels ok. But why so many cat? Simply because cat is a great editor. I use the command cat for many things:
cat in editor mode:
cat > file.txt
cat in append editor mode:
cat >> file.txt
cat in DVD rip mode:
cat /dev/dvd > DVD-RIP.ISO
and of course the DVD is such that I am allowed to do that!
cat in printer mode:
cat | lpr -P 414
… I simply love cat. Which is rather strange considering I am allergic to cats.
No comments yet.
Leave a comment
Me elsewhere ..
FSCONS
Pages
Links
Categories
- Blogroll (1)
- book (8)
- Coffee (1)
- Copyright (3)
- Copyleft (2)
- datum (2)
- Education (5)
- English (2)
- event (50)
- conference (38)
- Food (1)
- Bread (1)
- Map (1)
- Music (9)
- Musik (16)
- Personal (13)
- Politics (2)
- politik (5)
- Religion (2)
- Software (147)
- Sport (6)
- Stupidities (2)
- Svenska (3)
- Translation (3)
- Uncategorized (20)
![[FSFe Fellow]](http://www.rejas.se/images/fsfe_fellow_badge_small.png)

