man > ed(1)

πŸ“– NAME

ed - line-oriented text editor

πŸš€ Quick Reference

Use CaseCommandDescription
Launch ed interactivelyedStart the line‑oriented text editor
Edit a fileed fileRead file into buffer for editing
Print all lines,pDisplay the entire buffer
Substitute texts/old/new/Replace first occurrence of pattern on current line
Write buffer to filewSave changes to the current file
Quit edqExit the editor
Get helphExplain last error
Run shell command!commandExecute a shell command from within ed

πŸ“ SYNOPSIS

ed [options] [file]

πŸ“„ DESCRIPTION

GNU ed is a line‑oriented text editor. It is used to create πŸ“, display πŸ‘οΈ, modify πŸ”§ and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands. Ed is the 'standard' text editor in the sense that it is the original editor for Unix, and thus widely available. For most purposes, however, it is superseded by full‑screen editors such as GNU Emacs or GNU Moe.

βš™οΈ OPTIONS

πŸ’‘ Start edit by reading in 'file' if given. If 'file' begins with a '!', read output of shell command.

πŸšͺ Exit status: 0 for a normal exit, 1 for environmental problems (file not found, invalid flags, I/O errors, etc), 2 to indicate a corrupt or invalid input file, 3 for an internal consistency error (e.g., bug) which caused ed to panic.

πŸ› REPORTING BUGS

Report bugs to bug-ed AT gnu.org
Ed home page: http://www.gnu.org/software/ed/ed.html
General help using GNU software: http://www.gnu.org/gethelp

©️ COPYRIGHT

Copyright Β© 1994 Andrew L. Moore.
Copyright Β© 2022 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

πŸ“š SEE ALSO

The full documentation for ed is maintained as a Texinfo manual. If the info and ed programs are properly installed at your site, the command

info ed

should give you access to the complete manual.

ed(1)
πŸ“– NAME πŸš€ Quick Reference πŸ“ SYNOPSIS πŸ“„ DESCRIPTION βš™οΈ OPTIONS πŸ› REPORTING BUGS ©️ COPYRIGHT πŸ“š SEE ALSO

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 19:26 @216.73.217.134
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^