# IP_ADDR=192.168.1.1; 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