summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/files/L5.1e
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:59 +0000
committerIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:59 +0000
commit1083c89a4423b36811471177bbe3abe0b50f3235 (patch)
tree46432d298508cad92b9cdf3320616c3824573d38 /usr.bin/learn/lib/files/L5.1e
parent5c33bfa47b213f93498fe8c5dc17f90f4d116c06 (diff)
import BTL learn(1) lessons/files
Diffstat (limited to 'usr.bin/learn/lib/files/L5.1e')
-rw-r--r--usr.bin/learn/lib/files/L5.1e29
1 files changed, 29 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/files/L5.1e b/usr.bin/learn/lib/files/L5.1e
new file mode 100644
index 00000000000..03c4142b9cb
--- /dev/null
+++ b/usr.bin/learn/lib/files/L5.1e
@@ -0,0 +1,29 @@
+#print
+Not only may the ? appear anywhere in a name,
+but there may be several ? characters in it.
+For example,
+ g??rge
+will match "george" and "goerge", among others.
+And "a??" will match "abc" or "a11" (but NOT "ax").
+Look at the files in the current directory and decide
+how many names the pattern
+ a?b?c
+will select. Again, you can try this out
+by comparing an ordinary "ls" with "ls a?b?c"
+to see what happens. When you figure
+out how many names are selected,
+type "answer N" where N is the number of file names.
+#create a0b0c
+#create a0bc
+#create a0x0c
+#create a1bxc
+#create aabbc
+#create azbzcz
+#copyin
+#user
+#uncopyin
+#match 3
+#log
+#next
+6.1a 5
+6.2a 2