http://www.unix-fan.com/dirname/