Archive for the ‘awk’ Category

Awesome Awk Tutorial

Tuesday, April 15th, 2008

This is exactly what I look for when I'm trying to find a tutorial. Thank you, Andrew M. Ross. My favorite awk tutorial ever.

Report space remaining on disk on unix login

Sunday, March 23rd, 2008

I get a kick out of stuff like this. Add this to your .bash_profile to be greeted with the remaining space on your disk. df -h | awk 'NR==2 {print "Space available " $4}' This will actually change depending on which version of df you're using (i think). I get ...