daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 71 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top