In fjbtndrv-2.2.1 rotate-wacom.sh has the following sed command:
sed 's/^[^]* \(.*\) *id=.*/\1/p; d' \
This does not work on my system (Slackware 64 13.1), but the following works
under both Ubuntu 10.10 and Slackware:
sed 's/^* \(.*\) *id=.*/\1/p; d' \
I don't know if the latter is completely general, but I know the former is not.
I'll fix it in the next version.