💾 Archived View for freeshell.de › tldr › ed.gmi captured on 2023-04-19 at 23:50:23. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
ed
The original Unix text editor.
More information.
- Start ed, editing an empty document (which can be saved as a new file in the current directory):
ed
- Start ed, editing an empty document, with `:` as a command prompt indicator:
ed -p :
- Start ed editing an existing file (this shows the byte count of the loaded file):
ed -p : {path/to/file}
- Toggle the printing of error explanations. (By default, explanations are not printed and only a `?` appears):
H
- Add text to the current document. Mark completion by entering a period by itself in a new line:
a<Enter>{text_to_insert}<Enter>.
- Print the entire document (`,` is a shortcut to the range `1,
gemini - kennedy.gemi.dev
which covers the start to the end of the document):
,p
- Write the current document to a new file (the filename can be omitted if `ed` was called with an existing file):
w {filename}
q
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY