echo $((~56 & 0xFFFF)) echo $((~1018 & 0xFFFF)) echo $((~58362 & 0xFFFF)) echo $((~56 & 0xFFFF)) echo $((~1018 & 0xFFFF)) echo $((~58362 & 0xFFFF))