summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/morefiles/L6.1b
blob: e85277caa33d17aa02134148695ee3bff4bca351 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#print
Several of the programs we have been using as examples,
such as "grep" and "wc", have the property that when
you use file names with them, the output includes
the file names.  For example, if you say
  grep pattern file1 file2 file3
each line that contains "pattern" is printed out
with "file1:" or whatever in front of it.

Sometimes you would love to get rid of that file name, since
you don't care a bit where the line came from,
and the file name clutters up the output.
One thing is to use "cat" to collect the files, and
pipe into "grep"; in that case "grep" doesn't mention
any file name because there isn't one.

In this directory there are several files whose names end 
in ".x".  Use a pipeline of "cat" and "grep" to print all the lines
that contain the letters "ion", without any identifying filenames.
Type "ready" when you're done.
#create 0x
ion, but this one is in the wrong file!
#create 1.x
o
o'
oaf
oafish
oafishly
oafishness
oak
oaken
oaks
oakum
oar
oared
oarfish
oarlock
oarsman
oases
oasis
oat
oatcake
oaten
oath
oaths
oatmeal
obbligati
obbligato
obbligatos
obconic
obcordate
obduracy
obdurate
#create 2.x
obdurately
obdurateness
obeah
obedience
obedient
obediently
obeisance
obeisant
obeli
obelisk
obelize
obelus
obese
obesity
obey
obeyer
obfuscate
obfuscation
obfuscatory
obi
obit
obituary
object
objectification
objectify
objection
objectionable
objectionableness
objectionably
objective
#create 3.x
objectively
objectiveness
objectivism
objectivist
objectivistic
objectivity
objectless
objector
objurgate
objurgation
objurgatory
oblanceolate
oblast
oblate
oblate
oblateness
oblation
obligate
obligately
obligation
obligatorily
obligatory
oblige
obligee
obliger
obliging
obligingly
obligingness
obligor
oblique
obliquely
obliqueness
obliquity
obliterate
#copyout
#user
#uncopyout
grep ion <.ocopy >X1
cat *.x | grep ion >X2
#cmp X1 X2
#log
#next
6.1c