BSD 3 development
[unix-history] / usr / lib / learn / files / L6.2a
CommitLineData
fd15fd37
BJ
1#print
2Since the '?' character only matches single
3characters in file names, it is not useful for
4questions like "how many files have names which
5begin with the letter g?" There is another character
6 *
7which can be used in patterns for file names
8and matches any number of any kind of characters.
9So
10 g*
11selects all file names beginning with g, and
12 *x
13selects all file names which end in x. Try
14 ls *x
15How many files match?
16Compare with an ordinary
17 ls
18if you like. Type "answer N" eventually where
19N is the number of files whose names end in "x".
20#create abcx
21#create abcxdef
22#create memox
23#create memoy
24#create memoz
25#create x
26#create x53x
27#copyin
28#user
29#uncopyin
30#match 4
31#log
32#next
336.2b 8
346.1a 1