Bash'isms

There are probably a million better ways to do these, but these are tricks that I keep using (I'm well on my way to becoming an old crusty unix guy :-( )