in reply to increment a hex number
Assuming your hex values are strings:
$ perl -e 'printf "%x", hex("0xab")+1' ac [download]