From 16c9990288f47177cdf778ef92f314d3edf38715 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 18 May 2006 18:47:41 +0000 Subject: correct example awk expression; ok jmc@ --- share/man/man8/diskless.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/man/man8/diskless.8 b/share/man/man8/diskless.8 index 8a7ec0e3dd0..74776f4c162 100644 --- a/share/man/man8/diskless.8 +++ b/share/man/man8/diskless.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: diskless.8,v 1.42 2006/05/18 15:57:02 jmc Exp $ +.\" $OpenBSD: diskless.8,v 1.43 2006/05/18 18:47:40 otto Exp $ .\" $NetBSD: diskless.8,v 1.7.4.1 1996/05/30 18:58:10 cgd Exp $ .\" .\" @@ -203,7 +203,7 @@ For example: 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 }' + '{ printf "%02X%02X%02X%02X\en", $1, $2, $3 ,$4 }' .Ed .Pp Some architectures, such as the Sun3 and Ultrasparc machines, do not append the -- cgit v1.2.3