File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / files / L7.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

#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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.