summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/files/L6.2a
blob: b94e7b54f022c0661920941906719d3f717c0f02 (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
#print
Since the '?' character only matches single
characters in file names, it is not useful for
questions like "how many files have names which
begin with the letter g?"  There is another character
  *
which can be used in patterns for file names
and matches any number of any kind of characters.
So
  g*
selects all file names beginning with g, and
  *x
selects all file names which end in x.  Try
  ls *x
How many files match?
Compare with an ordinary
  ls
if you like.  Type "answer N" eventually where
N is the number of files whose names end in "x".
#create abcx
#create abcxdef
#create memox
#create memoy
#create memoz
#create x
#create x53x
#copyin
#user
#uncopyin
#match 4
#log
#next
6.2b 8
6.1a 1