update from Bob Kemp on bash script