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 prompt:
ed ''
- Start an interactive editor session with user-friendly errors:
ed
- Start an interactive editor session with an empty document and without diagnostics, byte counts, and '!' prompt:
ed
- Start an interactive editor session without exit status change when command fails:
ed
- Edit a specific file (this shows the byte count of the loaded file):
ed
- [Interactive] Replace a string with a specific replacement for all lines:
,s///g
- [Interactive] Exit
ed:
q
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
