System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

ed

The original Unix text editor. See also: awk, sed. More information: https://www.gnu.org/software/ed/manual/ed_manual.html.
  • Start an interactive editor session with an empty document:
    ed
  • Start an interactive editor session with an empty document and a specific [p]rompt:
    ed -p '> '
  • Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt:
    ed -s
  • Edit a specific file (this shows the byte count of the loaded file):
    ed {{path/to/file}}
  • Replace a string with a specific replacement for all lines:
    ,s/{{regular_expression}}/{{replacement}}/g

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: