summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-05-18 09:03:04 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-05-18 09:03:04 +0000
commitfa4343555be6b63b0a71bb1a8aa0b84791dae224 (patch)
tree5549ea2b3209a1fd288b0d2978c6c73ef8b041d3
parent55ee0b4b9f71cc4b59b74d2b005eaab5d9462e98 (diff)
otto's example of how to convert an IP address to hex;
-rw-r--r--share/man/man8/diskless.88
1 files changed, 7 insertions, 1 deletions
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.