GNU Info

Info Node: (ed.info)Invoking ed

(ed.info)Invoking ed


Next: Line addressing Prev: Intro Up: Top
Enter node , (file) or (file)node

Invoking GNU `ed'
*****************

     ed [-] [-Gs] [-p STRING] [FILE]
     red [-] [-Gs] [-p STRING] [FILE]

`-G'
     Forces backwards compatibility.  This affects the behavior of the
     `ed' commands `G', `V', `f', `l', `m', `t' and `!!'.  If the
     default behavior of these commands does not seem familiar, then
     try invoking `ed' with this switch.

`-s'
`-'
     Suppresses diagnostics. This should be used if `ed''s standard
     input is from a script.

`-p STRING'
     Specifies a command prompt.  This may be toggled on and off with
     the `P' command.

   FILE specifies the name of a file to read.  If FILE is prefixed with
a bang (!), then it is interpreted as a shell command.  In this case,
what is read is the standard output of FILE executed via `sh (1)'.  To
read a file whose name begins with a bang, prefix the name with a
backslash (`\').  The default filename is set to FILE only if it is not
prefixed with a bang.


automatically generated by info2www version 1.2.2.9