diff options
Diffstat (limited to 'usr.bin/learn/lib/files/L5.1e')
-rw-r--r-- | usr.bin/learn/lib/files/L5.1e | 29 |
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 |