Tag Archives: sh

That Looks Somewhat Iffy

Oh, go on, then.

% history 1 | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
320 git
112 ll
80 cd
48 ls
24 less
20 man
19 happygiraffe.net
17 sudo
15 rm
14 xattr

NB:

This is at home, not work. [...]

Shell Scripting

I kind of like shell scripting. It’s quirky, frequently ugly, but it’s damned useful. Like Perl, it annoys me when I see things which could be written in a better manner. One persistent example is abusing the if statement.

if [ "x$machine" = "x" ]
then
[...]

Quote of the day

From the mod_ssl configure script:

Programming in Bourne-Shell is a higher form of masochism.

No known attribution.
This still doesn’t explain why I enjoy shell scripting so much.