Bell 32V development
[unix-history] / usr / lib / learn / files / L7.3a
CommitLineData
fed84c9b
TL
1#print
2Sometimes ? is too flexible, and you
3only want to allow a few characters. For example,
4you might want to abbreviate
5 ls memo.ab memo.ac
6without picking up "memo.ad", "!"memo.ae", and so forth.
7You can match one of a set of particular characters by
8putting them in brackets "[]" in the list you use with "ls".
9For example,
10 [bc]
11matches either b or c but no other letters.
12Thus the command
13 ls memo.a[bc]
14would match "memo.ab", "memo.ac", and nothing else.
15Try that command in this directory: type a plain
16"ls" first, and then "ls memo.a[bc]".
17How many files does "ls memo.a[bc]" match?
18Type "answer N" where N is the number.
19#create memo.ab
20#create memo.abc
21#create memo.bc
22#copyin
23#user
24#uncopyin
25#match 1
26#log
27#next
287.3b 2