summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/files/L6.2a
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/files/L6.2a')
-rw-r--r--usr.bin/learn/lib/files/L6.2a34
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