summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L39.1a
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/editor/L39.1a')
-rw-r--r--usr.bin/learn/lib/editor/L39.1a28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L39.1a b/usr.bin/learn/lib/editor/L39.1a
new file mode 100644
index 00000000000..722f8e7f52a
--- /dev/null
+++ b/usr.bin/learn/lib/editor/L39.1a
@@ -0,0 +1,28 @@
+#print
+Using the "^" character, you can easily put things
+at the beginnings of lines. For example
+ s/^/***/
+puts "***" at the beginning of the line. Now edit
+the file "text" and put the symbol '=' at the beginning
+of lines 3 through 5. Then rewrite the file and type "ready".
+#create Ref
+beef
+pork
+=chicken
+=duck
+=turkey
+lamb
+fish
+#create text
+beef
+pork
+chicken
+duck
+turkey
+lamb
+fish
+#user
+#cmp text Ref
+#log
+#next
+40.1a 10