| sed '/ATT (NEW)/d'
[unix-history] / usr / src / old / sed / sed.1
index 30a90bb..917d9b1 100644 (file)
@@ -1,6 +1,10 @@
-.\"    @(#)sed.1       6.1 (Berkeley) %G%
+.\" Copyright (c) 1990 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
 .\"
 .\"
-.TH SED 1 ""
+.\"     @(#)sed.1      6.3 (Berkeley) %G%
+.\"
+.TH SED 1 "%Q"
 .AT 3
 .SH NAME
 sed \- stream editor
 .AT 3
 .SH NAME
 sed \- stream editor
@@ -295,5 +299,13 @@ only when the pattern space is selected.
 .TP
 (0)\|
 An empty command is ignored.
 .TP
 (0)\|
 An empty command is ignored.
+.TP
+(0)\|#
+If a \fI#\fP appears as the first character on a line of a script,
+then that entire line is treated as a comment, with one exception.
+If the first line of the script starts with the characters ``\fI#\fPn'',
+then the default output will be suppressed.  The rest of the line after
+``\fI#\fPn'' will also be ignored.  A script file must contain at least one
+non-comment line.
 .SH SEE ALSO
 ed(1), grep(1), awk(1), lex(1)
 .SH SEE ALSO
 ed(1), grep(1), awk(1), lex(1)