Forrest logo
tool overview
On this page you find all important commands for the CLI tool ed. If the command you are looking for is missing please ask our AI.

ed

ED is a command line text editor that is both minimalistic and powerful. It was one of the earliest text editors developed and included in Unix systems since the 1970s. The name "ed" itself stands for "editor."

ED operates by reading and modifying files directly, without any graphical user interface. It is designed to work in a terminal environment, making it particularly suitable for use over remote connections or in scripting.

Some features of ED include:

  1. Line-oriented editing: ED primarily works with text files line by line, allowing users to navigate, search, and modify individual lines.
  2. Simple command structure: ED uses a distinct command structure where each command is a single character command preceded by a line address or range. This makes it an efficient tool for scripting.
  3. Compactness: ED is very small in size, requiring minimal system resources to run.
  4. Regular expressions: It supports regular expressions for pattern matching and searching, providing flexible editing options.
  5. Persistent storage: ED typically keeps a copy of the original file, allowing users to undo changes or revert to the initial version.

Despite its minimalistic design, ED can be a versatile tool for editing files in a command line environment, especially when performing quick edits or automating editing tasks through scripting.

List of commands for ed:

  • ed:tldr:58420 ed: Start an interactive editor session without exit status change when command fails.
    $ ed --loose-exit-status
    try on your machine
    explain this command
  • ed:tldr:620b3 ed: Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt.
    $ ed -s
    try on your machine
    explain this command
  • ed:tldr:633bb ed: Start an interactive editor session with an empty document and a specific prompt.
    $ ed --prompt='> '
    try on your machine
    explain this command
  • ed:tldr:79c54 ed: Start an interactive editor session with an empty document and a specific [p]rompt.
    $ ed -p '> '
    try on your machine
    explain this command
  • ed:tldr:956e9 ed: Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt.
    $ ed --quiet
    try on your machine
    explain this command
  • ed:tldr:98d5e ed: Start an interactive editor session with user-friendly errors.
    $ ed --verbose
    try on your machine
    explain this command
  • ed:tldr:a5ebb ed: Edit a specific file (this shows the byte count of the loaded file).
    $ ed ${filename}
    try on your machine
    explain this command
  • ed:tldr:b5f37 ed: Start an interactive editor session with an empty document.
    $ ed
    try on your machine
    explain this command
tool overview