Monthly Archives: January 2009

line numbers in shell

AKA ‘Today’s exciting shell command I learned’ nl e.g. $ echo -e "hello\ncruel\nworld" | nl 1 hello 2 cruel 3 world

ack – best thing since sliced bread

Someone at work recently pointed out ack. It’s a powerful replacement for find and grep. My favorite features: it ignores CVS/.svn directories; can easily specify file types with a flag (and of course define your own types); and it has colour highlighting on the output. On Ubuntu it is called ‘ack-grep’ instead of just ‘ack’: […]