diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:59 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 1998-09-28 16:01:59 +0000 |
commit | 1083c89a4423b36811471177bbe3abe0b50f3235 (patch) | |
tree | 46432d298508cad92b9cdf3320616c3824573d38 /usr.bin/learn/lib/files/L6.2a | |
parent | 5c33bfa47b213f93498fe8c5dc17f90f4d116c06 (diff) |
import BTL learn(1) lessons/files
Diffstat (limited to 'usr.bin/learn/lib/files/L6.2a')
-rw-r--r-- | usr.bin/learn/lib/files/L6.2a | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/files/L6.2a b/usr.bin/learn/lib/files/L6.2a new file mode 100644 index 00000000000..b94e7b54f02 --- /dev/null +++ b/usr.bin/learn/lib/files/L6.2a @@ -0,0 +1,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 |