summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-12-19 09:27:37 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-12-19 09:27:37 +0000
commit40028c48cfa283bb5a4f0c8fc6c0cee861f44b3d (patch)
treec3e92ba494decb9b463854eed6378d34b6c74999 /usr.bin
parent08fb42f944c4f0a3620b3aaa6cf1dbcdbccb18d0 (diff)
add an example showing how to print to standard error;
suggested by otto@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/awk/awk.17
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/awk/awk.1 b/usr.bin/awk/awk.1
index 229c0658ccb..1ed637eab7c 100644
--- a/usr.bin/awk/awk.1
+++ b/usr.bin/awk/awk.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: awk.1,v 1.18 2003/12/18 20:22:51 jmc Exp $
+.\" $OpenBSD: awk.1,v 1.19 2003/12/19 09:27:36 jmc Exp $
.\" EX/EE is a Bd
.\"
.\" Copyright (C) Lucent Technologies 1997
@@ -707,6 +707,11 @@ BEGIN { # Simulate echo(1)
printf "\en"
exit }
.Ed
+.Pp
+Print an error message to standard error:
+.Bd -literal -offset indent
+{ print "error!" > "/dev/stderr" }
+.Ed
.Sh SEE ALSO
.Xr egrep 1 ,
.Xr lex 1 ,