diff options
Diffstat (limited to 'usr.bin/learn/lib/files/L7.1a')
-rw-r--r-- | usr.bin/learn/lib/files/L7.1a | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/files/L7.1a b/usr.bin/learn/lib/files/L7.1a new file mode 100644 index 00000000000..871f82f26d4 --- /dev/null +++ b/usr.bin/learn/lib/files/L7.1a @@ -0,0 +1,38 @@ +#print +Sometimes ? is too flexible, and you +only want to allow a few characters. For example, +you might want to abbreviate + ls memo.ab memo.ac +without picking up "memo.ad", memo.ae", etc. +You can match one of a set of particular characters by +putting them in brackets "[]" in the list you use with "ls". +For example, + [bc] +matches either b or c but no other letters, +so "ls memo.a[bc]" is the abbreviation for +"ls memo.ab memo.ac". +You can have as many characters as needed between [ and ]. + +Type the "ls" command that recognizes + a1cat + a2cat + a3cat +and no other files. Then type "ready". +#create a1bat +#create a1cat +#create a2cat +#create a3cat +#create a4cat +#create acat +#copyin +#user +#uncopyin +#match ls a[123]cat +#match ls a[1-3]cat +#match ls a1cat a2cat a3cat +You were supposed to use a[123]cat. +Imagine doing it your way with 10 files. +#log +#next +8.1a 10 +8.2a 5 |