Linux "red" Command Line Options and Examples
line-oriented text editor

GNU Ed - The GNU line editor..


Usage:

ed [options] [file]




Command Line Options:

-h
display this help and exit
red -h ...
-V
output version information and exit
red -V ...
-G
run in compatibility mode
red -G ...
-l
exit with 0 status even if a command fails
red -l ...
-p
use STRING as an interactive prompt
red -p ...
-r
run in restricted mode
red -r ...
-s
suppress diagnostics
red -s ...
-v
be verboseStart 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 (eg, bug) whichcaused ed to panic.REPORTING BUGSReport bugs to bug-ed@gnu.orgEd home page: http://www.gnu.org/software/ed/ed.htmlGeneral help using GNU software: http://www.gnu.org/gethelpCOPYRIGHTCopyright © 1994 Andrew L. Moore.Copyright © 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 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 per‐mitted by law.
red -v ...