ticket:9 add bash scrip for printmodes command