You're viewing a comment by Maxim Yemelyanov and its responses.

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'\'''

Comment Responses

ohlolsyswritenow Permalink
November 26, 2013, 13:01


Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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