UNIX for OpenVMS Users, Second Edition

Appendix B: Editor Summaries

General form           EDT        * <b class="bold"><i class="emphasis">command linea:lineb</i></b>of commands:           <b class="bold">ex</b>         : <b class="bold"><i class="emphasis">linea,lineb command options</i></b>
Table B.1: VMS EDT Line Mode versus UNIX ex

EDT

ex

ex Function

Display Commands

T x

x

Display line x

T x:y

x,y

Display lines x through y

T.:END

.,$

Display current line to end of file

(TREST)

T1:.

1,.

Display line 1 to current line

TWHOLE

1,$

Display whole file

T string

/ string /

Display first line containing string below current line

T- string

? string ?

Display first line containing string above current line

T a:b,x:y

a,b x,y

Display lines a through b followed by lines x through y

x,ynu

Display lines x through y with line numbers

Manipulation Commands

L

a

Append after current line

D

d

Delete current line

D x:y

x,yd

Delete lines x through y

S/S1/ S 2

s / s 1 / s 2/

Substitute String 1 for String 2

S/S1 S2/ 1:END

s / s 1/ s 2/g

Substitute String1 for String 2 throughout the file

R.

c

Delete current line and insert

Mx:y TO z

x , ym z

Move lines x through yand paste after z

WRITE file x:y

x,ya

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Multi-Input Display Processors
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.