# IP_ADDR=; printf ‘%02X’ ${IP_ADDR//./ } ; echo

# C0A80101

2 Responses to “*NIX Quickies: one line IP address to HEX”

  1. Tempkus Says:

    Foarte bine zis. Chiar mi-a placut foarte mult.

  2. Kareem Schauble Says:

    Just landed on this post via Google lookup. I love it. This situation switch my perceptual experience and I am fixing the RSS feeds. Cheers Up.

Leave a Reply