home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3626 / archie.examples < prev    next >
Encoding:
Text File  |  1991-07-15  |  922 b   |  34 lines

  1. The default format string is (between the '--' lines):
  2. --
  3. %02seq Host %host
  4.  
  5.      Location: %dir
  6.        %type %mode %size %date %name
  7.  
  8. --
  9. If you want to specify it on the command line, you do this:
  10.  
  11. $ archie -format '%02seq Host %host\n\n    Location: %dir\n\
  12.       %type %mode %date %name' word
  13.  
  14. Notice the single quotes used. This is to prevent the shell from
  15. interpreting it.
  16.  
  17. If you want, you can put it in a file, say archie.format, and use the
  18. -ffile option:
  19.  
  20. $ archie -ffile archie.format word
  21.  
  22. I usually need only about 10 hits. But the server does not always give
  23. me about 20. So I set the maximum hit to be 40. On command line, I specify
  24.  
  25. $ archie -match 40 vgrind
  26.  
  27. Be careful to single quote any regular expressions you have. Notice:
  28. the regular expression syntax is out of the control of the program.
  29. Read the help file on quiche.cs.mcgill.ca to read for yourself.
  30.  
  31. $ archie -match 40 -reg '*grind*'
  32.  
  33. Khun Yee
  34.