Changeset View
Changeset View
Standalone View
Standalone View
head/bin/ed/ed.1
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.Dd October 2, 2016 | .Dd February 5, 2017 | ||||
.Dt ED 1 | .Dt ED 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm ed , | .Nm ed , | ||||
.Nm red | .Nm red | ||||
.Nd text editor | .Nd text editor | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
▲ Show 20 Lines • Show All 855 Lines • ▼ Show 20 Lines | |||||
command, expect that the previous contents of file is not clobbered. | command, expect that the previous contents of file is not clobbered. | ||||
The current address is unchanged. | The current address is unchanged. | ||||
.It x | .It x | ||||
Prompt for an encryption key which is used in subsequent reads and | Prompt for an encryption key which is used in subsequent reads and | ||||
writes. | writes. | ||||
If a newline alone is entered as the key, then encryption is | If a newline alone is entered as the key, then encryption is | ||||
turned off. | turned off. | ||||
Otherwise, echoing is disabled while a key is read. | Otherwise, echoing is disabled while a key is read. | ||||
Encryption/decryption is done using the | |||||
.Xr bdes 1 | |||||
algorithm. | |||||
.It Pf (.+1)z n | .It Pf (.+1)z n | ||||
Scroll | Scroll | ||||
.Ar n | .Ar n | ||||
lines at a time starting at addressed line. | lines at a time starting at addressed line. | ||||
If | If | ||||
.Ar n | .Ar n | ||||
is not specified, then the current window size is used. | is not specified, then the current window size is used. | ||||
The current address is set to the last line printed. | The current address is set to the last line printed. | ||||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
.Pp | .Pp | ||||
If diagnostics are not disabled, attempting to quit | If diagnostics are not disabled, attempting to quit | ||||
.Nm | .Nm | ||||
or edit another file before writing a modified buffer | or edit another file before writing a modified buffer | ||||
results in an error. | results in an error. | ||||
If the command is entered a second time, it succeeds, | If the command is entered a second time, it succeeds, | ||||
but any changes to the buffer are lost. | but any changes to the buffer are lost. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr bdes 1 , | |||||
.Xr sed 1 , | .Xr sed 1 , | ||||
.Xr sh 1 , | .Xr sh 1 , | ||||
.Xr vi 1 , | .Xr vi 1 , | ||||
.Xr regex 3 | .Xr regex 3 | ||||
.Pp | .Pp | ||||
USD:12-13 | USD:12-13 | ||||
.Rs | .Rs | ||||
.%A B. W. Kernighan | .%A B. W. Kernighan | ||||
Show All 32 Lines |