(ed.info.gz) Invoking Ed

Info Catalog (ed.info.gz) Introduction to Line Editing (ed.info.gz) Top (ed.info.gz) Line Addressing
 
 3 Invoking Ed
 *************
 
 The format for running `ed' is:
 
      ed [OPTIONS] [FILE]
      red [OPTIONS] [FILE]
 
    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.
 
    `ed' supports the following options:
 
 `--help'
 `-h'
      Print an informative help message describing the options and exit.
 
 `--version'
 `-V'
      Print the version number of `ed' on the standard output and exit.
 
 `--loose-exit-status'
 `-l'
      Do not exit with bad status if a command happens to "fail" (for
      example if a substitution command finds nothing to replace). This
      can be useful when `ed' is invoked as the editor for crontab.
 
 `--prompt=STRING'
 `-p STRING'
      Specifies a command prompt. This may be toggled on and off with the
      `P' command.
 
 `--quiet'
 `--silent'
 `-s'
      Suppresses diagnostics. This should be used if `ed''s standard
      input is from a script.
 
 `--traditional'
 `-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.
 
 `--verbose'
 `-v'
      Verbose mode. This may be toggled on and off with the `H' command.
 
 
Info Catalog (ed.info.gz) Introduction to Line Editing (ed.info.gz) Top (ed.info.gz) Line Addressing
automatically generated by info2html