a guest Apr 17th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- IP_HEX=$(printf '%.2X%.2X%.2X%.2X\n' `echo $IP | gsed -e 's/\./ /g'`)
- NEXT_IP_HEX=$(printf %.8X `echo $(( 0x$IP_HEX + 1 ))`)
- NEXT_IP=$(printf '%d.%d.%d.%d\n' `echo $NEXT_IP_HEX | gsed -r 's/(..)/0x\1 /g'`)
- echo "$NEXT_IP"
RAW Paste Data