Jean Pierre LeJacq <[EMAIL PROTECTED]> writes: > This will strip the shortest suffix that matches ".*" > > ${var%.*} > > This will strip the longest suffix that matches ".*" > > ${var%.*}
Oops. ${var%%.*} strips the longest. And using # instead of % will strip from the beginning. Guy