version 1.32, 2009/02/08 17:15:10 |
version 1.33, 2009/08/07 03:30:56 |
|
|
.Nd stream editor |
.Nd stream editor |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm sed |
.Nm sed |
.Op Fl anu |
.Op Fl Eanru |
.Ar command |
.Ar command |
.Op Ar |
.Op Ar |
.Nm sed |
.Nm sed |
.Op Fl anu |
.Op Fl aEnru |
.Op Fl e Ar command |
.Op Fl e Ar command |
.Op Fl f Ar command_file |
.Op Fl f Ar command_file |
.Op Ar |
.Op Ar |
|
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
.It Fl E |
|
Interpret regular expressions using the POSIX extended regular expression |
|
syntax (documented in |
|
.Xr re_format 7 ). |
|
The default behaviour is to use the POSIX basic regular expression syntax. |
.It Fl a |
.It Fl a |
The files listed as parameters for the |
The files listed as parameters for the |
.Ql w |
.Ql w |
|
|
.Ar command_file |
.Ar command_file |
to the list of commands. |
to the list of commands. |
The editing commands should each be listed on a separate line. |
The editing commands should each be listed on a separate line. |
|
.It Fl r |
|
is an alias for |
|
.Fl E |
|
(enable POSIX extended regular exressions) for compatibility with GNU sed. |
.It Fl n |
.It Fl n |
By default, each line of input is echoed to the standard output after |
By default, each line of input is echoed to the standard output after |
all of the commands have been applied to it. |
all of the commands have been applied to it. |
|
|
specification. |
specification. |
.Pp |
.Pp |
The flags |
The flags |
.Op Fl au |
.Op Fl aEru |
are extensions to that specification. |
are extensions to that specification. |
.Pp |
.Pp |
The use of newlines to separate multiple commands on the command line |
The use of newlines to separate multiple commands on the command line |