Deconstructing CLAN Commands

Examine the following CLAN command examples:

freq +s@a:\rflxv.lst +t*ADA +u adam*.cha >a:\rflxv.txt
kwal +s@a:\rflxv.lst +t*ADA -w3 +w3 +u adam*.cha >a:\rflxv.syn

Each CLAN command has the following components: command, switch(es), file(s) to search, and output redirection.  The following table shows the components from the examples:

Command   Switch(es)         File(s) to search    Output Redirection
freq      +s@a:\rflxv.lst    adam*.cha                 >a:\rflxv.txt
kwal      -w3 +w3            adam*.cha                 >a:\rflxv.syn
          +t*ADA
          +u

Using Switches
Switches direct CLAN commands to search for various items in a CHAT file.  Consider the switches used in the examples:

Using the Wildcard ( the Asterisk)
To search in only one file (i.e., Adam's first file), type "ada1.cha." To search all of Adam's files, not just one of them, type a similar command using the wildcard (the asterisk symbol) in place of the the number:

ada*.cha

The wildcard symbol substitutes for any alphanumeric character(s).

Also, use the wildcard symbol in Notepad files to extend your search on words. For example, typing the word "drive" in a search locates only the exact word "drive." However, typing "driv*" extends the search to find the words "drive", "driving", "drived", and whatever other words begin with "driv."