Skip to content

Instantly share code, notes, and snippets.

@nanpuyue nanpuyue/
Last active Sep 15, 2018

What would you like to do?
# date: 2018-03-03
# license: GPLv3
# author: nanpuyue <>
num=$((4294967296 - 2**(32-$1)))
for i in {3..0};do
echo -n $((num / 256**i))
num=$((num % 256**i))
(($i == 0)) && echo || echo -n .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.