summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/morefiles/L3.1d
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/morefiles/L3.1d')
-rw-r--r--usr.bin/learn/lib/morefiles/L3.1d134
1 files changed, 134 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/morefiles/L3.1d b/usr.bin/learn/lib/morefiles/L3.1d
new file mode 100644
index 00000000000..1f7654c1ecc
--- /dev/null
+++ b/usr.bin/learn/lib/morefiles/L3.1d
@@ -0,0 +1,134 @@
+#print
+The pr command has a number of other capabilities besides simple
+printing of files. Probably the most useful is that it can do
+multi-column printing. This is controlled by an optional
+argument:
+ pr -3 filenames
+will print in 3-column format, and
+ pr -5 filenames
+prints in five columns. You can use any number in place of 3 and 5,
+although as you get more columns they become narrower
+so things will fit.
+Notice that the optional argument comes ______before the files names.
+
+In this directory there is a list of words. Find the list, print
+it in two columns, and find out what word appears at the top
+of the second column. Type "answer WORD", where WORD
+is the word you decide on.
+#create wordlist
+a
+aardvark
+aardwolf
+Aaron
+Aaronic
+Ab
+aba
+abaca
+abaci
+aback
+abacus
+abacuses
+abaft
+abalone
+abandon
+abandoned
+abandoner
+abandonment
+abase
+abasement
+abash
+abashment
+abate
+abatement
+abater
+abatis
+abatises
+abattoir
+abaxial
+abbacy
+Abbasid
+abbatial
+abbe'
+abbess
+Abbevillian
+abbey
+abbot
+abbreviate
+abbreviation
+abbreviator
+Abby
+Abc
+Abcs
+Abc's
+abdicable
+abdicate
+abdication
+abdicator
+abdomen
+abdominal
+abdominally
+abdominous
+abduce
+abducent
+abduct
+abduction
+abductor
+abeam
+abecedarian
+abed
+Abel
+abele
+abelmosk
+aberrance
+aberrancy
+aberrant
+aberrantly
+aberration
+aberrational
+abet
+abetment
+abetted
+abetter
+abetting
+abettor
+abeyance
+abeyant
+abhominable
+abhor
+abhorred
+abhorrence
+abhorrent
+abhorrently
+abhorrer
+abhorring
+Abib
+abidance
+abide
+abided
+abider
+abiding
+Abigail
+abigail
+ability
+abiogeneses
+abiogenesis
+abiogenetic
+abiogenetical
+abiogenetically
+abiogenist
+#copyin
+#user
+#uncopyin
+#create script
+/^a/s/.* //
+.w X1
+w
+q
+#
+pr -2 wordlist >foo
+ed - foo <script
+tail -1 .copy >X2
+#cmp X1 X2
+#log
+#next
+3.1e 10