blob: 7d83c3ba7e6fc100528e05424451bd794de3236b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#print
Now that you know how to add lines to a file,
you will want to know how to get rid of them.
The command
5d
will delete line 5 of a file. The command
.d
will delete the current line.
In the file 'pres' either the 5th or 6th line
is wrong. Print those lines and delete the bad
one; then rewrite the corrected file.
Then type 'ready'.
#create Ref
george washington
john adams
thomas jefferson
james madison
james monroe
john quincy adams
andrew jackson
martin van buren
william henry harrison
john tyler
#create pres
george washington
john adams
thomas jefferson
james madison
james monroe
this is wrong Qwertyuiop
john quincy adams
andrew jackson
martin van buren
william henry harrison
john tyler
#pipe
#user
#unpipe
#cmp pres Ref
#log
#next
19.1b 10
|