Commit | Line | Data |
---|---|---|
fed84c9b TL |
1 | |
2 | Sometimes ? is too flexible, and you | |
3 | only want to allow a few characters. For example, | |
4 | you might want to abbreviate | |
5 | ls memo.ab memo.ac | |
6 | without picking up "memo.ad", "!"memo.ae", and so forth. | |
7 | You can match one of a set of particular characters by | |
8 | putting them in brackets "[]" in the list you use with "ls". | |
9 | For example, | |
10 | [bc] | |
11 | matches either b or c but no other letters. | |
12 | Thus the command | |
13 | ls memo.a[bc] | |
14 | would match "memo.ab", "memo.ac", and nothing else. | |
15 | Try that command in this directory: type a plain | |
16 | "ls" first, and then "ls memo.a[bc]". | |
17 | How many files does "ls memo.a[bc]" match? | |
18 | Type "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 | |
28 | 7.3b 2 |