home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / stuff2.arj / GIVEHELP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-21  |  2.0 KB  |  47 lines

  1. /*
  2. Stuff 2.0.
  3.  
  4. Checksum: 1666273838 (verify with "brik")
  5.  
  6. (C) Copyright 1989 Rahul Dhesi.  Permission is granted to copy and
  7. distribute this file in modified or unmodified form, whether for
  8. noncommercial or commercial use, provided (a) this copyright notice
  9. is preserved, (b) no attempt is made to restrict redistribution of
  10. this file, and (c) this file is not distributed as part of any
  11. collection whose redistribution is restricted by a compilation
  12. copyright.
  13. */
  14.  
  15. /* Gives help */
  16. #include <stdio.h>
  17. #include "stuff.h"
  18.  
  19. void givehelp (void)
  20. {
  21. printf (
  22. "Stuff 2.0, a public domain file finder for use with zoo, by Rahul Dhesi\n"
  23. "Usage:  stuff pathnames ... [ conditions ... ]\n\n"
  24.  
  25. "\"pathnames\" are filenames/directory names, MSDOS wildcards ok, files are\n"
  26. "listed if they meet all conditions, ! reverses following condition.  If / is\n"
  27. "in pattern then pathname must match, else only filename need match.  If more\n"
  28. "than one filename is specified, all matching files are selected.  Conditions:\n\n"
  29.  
  30. "-name pattern    wildcards ok, * matches all files, dot is not special\n"
  31. "-name @file      read patterns from file, one on each line\n"
  32. "-size N          size is N kilobytes (+N means over N, -N means less than N)\n"
  33. "-mtime N         modified N days ago (+N means over N, -N means less than N)\n"
  34. "-modified        modified since last backup (tests \"archive\" bit)\n"
  35. "-older filename  older than specified file (false if \"filename\" not found)\n"
  36. "-newer filename  newer than specified file (true if \"filename\" not found)\n\n"
  37.  
  38. "To recursively list all files in /bin and /new whose names end in DOC or EXE,\n"
  39. "and which are not listed in the file \"stoplist\", and which have been\n"
  40. "modified in the last two days, and which are no more than 8 kilobytes long,\n"
  41. "excluding all files in the /bin/scr subdirectory, the command is:\n\n"
  42.  
  43. "stuff /bin /new -name *.DOC -name *.EXE ! -name @stoplist -mtime -3\n"
  44. "    ! -size +8 ! -name /bin/scr*\n"
  45. );
  46. }
  47.