Commit | Line | Data |
---|---|---|
00b28f22 TL |
1 | |
2 | The most frequently used editor command is | |
3 | p | |
4 | which prints out a line. Try that now. | |
5 | Type the command sequence | |
6 | ||
7 | p | |
8 | w | |
9 | q | |
10 | ||
11 | to print out a line, and then write out the file. | |
12 | Then type "ready". | |
13 | #create Ref | |
14 | This is the line to be printed. Don't forget w, then q. | |
15 | 56 | |
16 | #create file | |
17 | This is the line to be printed. Don't forget w, then q. | |
18 | #copyout | |
19 | #pipe | |
20 | ed file | |
21 | #user | |
22 | #unpipe | |
23 | #uncopyout | |
24 | tail -2 .ocopy >X2 | |
25 | #cmp Ref X2 | |
26 | #log | |
27 | #next | |
28 | 6.1a 5 | |
29 | 6.2a 2 |