daily pastebin goal
11%
SHARE
TWEET

Untitled

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