summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L70.2a
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:46 +0000
committerIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:46 +0000
commit8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (patch)
tree034fd6a68d5b6928d6fe4e51de71c9868bb460b1 /usr.bin/learn/lib/editor/L70.2a
parente9be7faad5fbf61edcad3700142615e315e407bc (diff)
import BTL learn(1) lessons/editor
Diffstat (limited to 'usr.bin/learn/lib/editor/L70.2a')
-rw-r--r--usr.bin/learn/lib/editor/L70.2a30
1 files changed, 30 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/editor/L70.2a b/usr.bin/learn/lib/editor/L70.2a
new file mode 100644
index 00000000000..afb862befe1
--- /dev/null
+++ b/usr.bin/learn/lib/editor/L70.2a
@@ -0,0 +1,30 @@
+#print
+Perhaps the most powerful editor command is the 'g'
+(global) command. This command selects sets of lines
+on which other commands are executed. For example,
+ g/abc/p
+prints all lines on which 'abc' appears. In this directory
+is a file "story". Print all lines on which the word
+"of" appears. Then leave the editor and type "ready".
+#create Ref
+ The people of the United States are in a sense becoming a nation
+of the United States in the future, it will be because that system
+did too good a job of filling many of the needs of the people.
+#create story
+ The people of the United States are in a sense becoming a nation
+on a tiger. They must learn to consume more and more or, they are
+warned, their magnificent economic machine may turn and devour them.
+They must be induced to step up their individual consumption higher
+and higher, whether they have any pressing need for the goods or
+not. Their ever-expanding economy demands it.
+ If modifications are forced upon the private-enterprise system
+of the United States in the future, it will be because that system
+did too good a job of filling many of the needs of the people.
+#copyout
+#user
+#uncopyout
+grep of .ocopy >x1
+#cmp x1 Ref
+#log
+#next
+70.2b 5