UNIX for OpenVMS Users, Third Edition

General form of commands:
EDT * <i class="emphasis">command</i> linea:linebex : linea,lineb <i class="emphasis">command options</i>vi vi [<i class="emphasis">options</i>] <i class="emphasis">file</i>Emacs emacs file
| EDT | ex | ex Function |
|---|---|---|
| Display Commands | ||
| T x | x | Display line x |
| T x: y | x, y | Display lines x through y |
| T.:END (TREST) | .,$ | Display current line to end of file |
| 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, bx, 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/S2 | s/s1/s2/ | Substitute string 1 for string 2 |
| S/S1/S2/1:END | s/s1/s2/g | Substitute string 1 for string 2 throughout the file |
| R. | c | Delete current line and insert |
| M x: y TO z | x, ym z | Move lines x through y and paste after z |
| WRITE file x: y | x, ya I | Copy lines x |