home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: echo Chapter 2
UNIX Commands
Next: Reference: edit
 

ed



ed

 [

options

] [

file

]

The standard text editor. If the named file does not exist, ed creates it; otherwise, the existing file is opened for editing. As a line editor, ed is generally no longer used because vi and ex have superseded it. Some utilities, such as diff , continue to make use of ed. Encryption can be used only in the United States.

Options

-C

Same as -x , but assume file began in encrypted form.

-p string

Set string as the prompt for commands (default is * ). The P command turns the prompt display on and off.

-s

Suppress character counts, diagnostics, and the ! prompt for shell commands.

-x

Supply a key to encrypt or decrypt file using crypt .


Previous: Reference: echo UNIX in a Nutshell: System V Edition Next: Reference: edit
Reference: echo Book Index Reference: edit

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System