You're replying to a comment by Maxim Yemelyanov.

Maxim Yemelyanov Permalink
November 20, 2011, 04:33

I have these shell aliases to quickly convert between IP and integer representations of the IP:

alias ip_to_number='perl -le '\''print unpack "N", pack "C4", split /\./, shift'\'''
alias number_to_ip='perl -le '\''print join ".", unpack "C4", pack "N", shift'\'''

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "0day_165": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.