| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
> Good morning,
>
> Does anyone have a software package that they love that converts the
> ip octet address to hexadecimal. Something simple, we just have to do some
> conversion and it would be a nice tool...
I have an HP 16C calculator that does a nice job.
You could also use gdb, and just use the print command p/x.
Or use 'bc' and set the output base to hex....
Or write a 6 line C program:
main(int ac, char **av)
{
int a,b,c,d;
sscanf(av[1], "%d.%d.%d.%d", &a, &b, &c, &d);
printf("%02x.%02x.%02x.%02x\n", a, b, c, d);
}
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).