UNIX for OpenVMS Users, Second Edition

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>
| 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 |