http://m68k.aminet.net/package/util/cli/ViewT
I found that, haven't tried it myself however. I wonder if those old IconX type programs have it in, like IconJ and XIcon, and I think there's another but you never know, they may have what you want? Worth checking out.
Edit:
I've just tried the ViewT and it does work, it lists the tooltypes but it numbers the lines too starting from 1. , it puts the number followed by a fullstop followed by a space and then the tooltype. You could use a script to modify and get clean output if required or try and alter the program itself as the C source is included. It has a DEL option, don't use that as it erases the line number of the tooltype you enter so be careful!