I have a *bunch* of these posts on this site – I even give a talk along these lines too, for more neat tricks have a look at it: http://www.slideshare.net/lornajane/linuxfu-for-php-developers