home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 378.lha / IncrCtr_v1.0 / IncrCtr.doc < prev    next >
Text File  |  1990-05-02  |  1KB  |  53 lines

  1. IncrCtr v1.0
  2. ------------
  3.  
  4. This program was thrown together in about 15 minutes after seeing the incr
  5. program on Fish Disk 311.  That program is probably a much better-written
  6. program than this one.  My main complaint with that program was the general
  7. purpose of it and the way it went about doing it.  
  8.  
  9.  
  10. Purpose of IncrCtr
  11.  
  12. IncrCtr increments an ARP environment variable by one.  ARP v39+ is required. 
  13. This program is desired to be used is AShell scripts, but may work under other
  14. shells that use ARP or Manx environment variables.  
  15.  
  16.  
  17. Usage
  18.  
  19. IncrCtr foo
  20.  
  21. If foo has a numeric value, it will be increased by one.  If "foo" has a
  22. string value or is undefined, it will be assigned a value of one.
  23.  
  24.  
  25. Example
  26.  
  27. An Ashell script composed of:
  28.  
  29. foo=5
  30. IncrCtr foo
  31. echo $foo
  32. IncrCtr foo
  33. echo $foo
  34. foo=bar
  35. IncrCtr foo
  36. echo $foo
  37.  
  38. when executed, will produce:
  39.  
  40. 6
  41. 7
  42. 1
  43.  
  44.  
  45. Questions, comments, suggestions, bugs, flames to:
  46.  
  47.   fvest@ducvax.auburn.edu
  48.   fvest@auducvax.bitnet
  49.   +1 205 745 3989 (c/o comments to sysop)
  50.   P.O.Box 2403 Auburn, AL 36849
  51.  
  52.   
  53.