summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L37.2d
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/editor/L37.2d')
-rw-r--r--usr.bin/learn/lib/editor/L37.2d22
1 files changed, 22 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L37.2d b/usr.bin/learn/lib/editor/L37.2d
new file mode 100644
index 00000000000..4d882188a9b
--- /dev/null
+++ b/usr.bin/learn/lib/editor/L37.2d
@@ -0,0 +1,22 @@
+#print
+There is another file named "table" in this directory.
+Find all numbers and surround them with "*" characters (that
+is, "345" becomes "*345*". Then rewrite the file
+and type "ready".
+#create Ref
+ Income
+Wages *73*
+Interest *20*
+Gambling *5*
+Other *2*
+#create table
+ Income
+Wages 73
+Interest 20
+Gambling 5
+Other 2
+#user
+#cmp table Ref
+#log
+#next
+37.2e 5