From fa4343555be6b63b0a71bb1a8aa0b84791dae224 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Thu, 18 May 2006 09:03:04 +0000 Subject: otto's example of how to convert an IP address to hex; --- share/man/man8/diskless.8 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'share/man/man8/diskless.8') diff --git a/share/man/man8/diskless.8 b/share/man/man8/diskless.8 index 1cd0c77bf33..affa92adb18 100644 --- a/share/man/man8/diskless.8 +++ b/share/man/man8/diskless.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: diskless.8,v 1.30 2006/05/17 21:38:44 jmc Exp $ +.\" $OpenBSD: diskless.8,v 1.31 2006/05/18 09:03:03 jmc Exp $ .\" $NetBSD: diskless.8,v 1.7.4.1 1996/05/30 18:58:10 cgd Exp $ .\" .\" @@ -201,6 +201,12 @@ For example: # ln -s boot.net C0C5600C.SUN4 .Ed .Pp +The following example converts an IP address to hex: +.Bd -literal -offset indent +$ echo 192.197.96.12 | awk -F . \e + '{ printf "0x%02x%02x%02x%02x\n", $1, $2, $3 ,$4 }' +.Ed +.Pp Some architectures, such as the Sun3 and Ultrasparc machines, do not append the architecture name. It this case, the name would be just C0C5600C. -- cgit v1.2.3