summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L37.2c
blob: 7ac6e2f7fb7a8157be0f3a42dc5a097bd4528460 (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
#print
How would you find a string of digits? Remember
[1234567890][1234567890]* 
as an expression? In this directory is a file
"table" which contains some numbers.  On every
line of the file, follow all numbers by the
character '%'.  It should only take one 's' command.
Then rewrite the file and type "ready".
#create Ref
  Budget Outlays
Salaries  32%
Equipment 40%
Rent      13%  (incl. utilities)
Interest   9%
Misc.      6%
#create table
  Budget Outlays
Salaries  32
Equipment 40
Rent      13  (incl. utilities)
Interest   9
Misc.      6
#user
#cmp table Ref
#log
#next
37.2d 5