home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 375.lha / ARPTools_v1.0 / man / For.man < prev    next >
Text File  |  1990-05-02  |  2KB  |  64 lines

  1.  
  2.  
  3.  
  4.      For(V1.0)                  ARPTOOLS Manual                  For(V1.0)
  5.  
  6.  
  7.  
  8.      NAME
  9.           For - Use wildcards with commands not supporting them.
  10.  
  11.      SYNOPSIS
  12.           For PAT/A MODE/K SVRFD DO/A Arguments/...
  13.           
  14.      DESCRIPTION
  15.           The For command allow the use of any type of ARP wildcard
  16.           with non-ARP commands. The file pattern must be supplied
  17.           with the PAT argument, the DO argument specifies wich command
  18.           is to be executed; Arguments/... contain the argument list
  19.           for the command. A '%%' sequence (unquoted) must be used to
  20.           indicate where the pattern should de expanded.
  21.           For is most suitable for use in scripts or in conjunction
  22.           with the Alias command.
  23.           A CTRL-D will stop For from calling the DO command.
  24.  
  25.      OPTIONS
  26.           Options in the MODE keyword may be combined together.             
  27.           MODE S
  28.                 Sort expanded filenames.
  29.           MODE V
  30.                 Verbose output: display a line containing the expanded
  31.                 command line before each execution of the DO command,
  32.                 with another line at the end showing return codes.
  33.           MODE R
  34.                 Try to make the DO command resident to speed execution.
  35.                 In case of success, the command will be removed from
  36.                 the resident list before exiting.
  37.           MODE F
  38.                 Expand files only.
  39.           MODE D
  40.                 Expand directories only.
  41.  
  42.      EXAMPLES
  43.           To display all the .pic file in the current directory in
  44.           alphabetical order:
  45.  
  46.           For *.pic MODE S DO Display %%
  47.  
  48.           An Alias example to make MORE support wildcards:
  49.  
  50.           Alias MORE FOR [] DO MORE %%
  51.  
  52.      BUGS
  53.           None known.
  54.  
  55.      SEE ALSO
  56.           Alias
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1
  64.