Changed from sed/cut to bash rematch