home *** CD-ROM | disk | FTP | other *** search
- IncrCtr v1.0
- ------------
-
- This program was thrown together in about 15 minutes after seeing the incr
- program on Fish Disk 311. That program is probably a much better-written
- program than this one. My main complaint with that program was the general
- purpose of it and the way it went about doing it.
-
-
- Purpose of IncrCtr
-
- IncrCtr increments an ARP environment variable by one. ARP v39+ is required.
- This program is desired to be used is AShell scripts, but may work under other
- shells that use ARP or Manx environment variables.
-
-
- Usage
-
- IncrCtr foo
-
- If foo has a numeric value, it will be increased by one. If "foo" has a
- string value or is undefined, it will be assigned a value of one.
-
-
- Example
-
- An Ashell script composed of:
-
- foo=5
- IncrCtr foo
- echo $foo
- IncrCtr foo
- echo $foo
- foo=bar
- IncrCtr foo
- echo $foo
-
- when executed, will produce:
-
- 6
- 7
- 1
-
-
- Questions, comments, suggestions, bugs, flames to:
-
- fvest@ducvax.auburn.edu
- fvest@auducvax.bitnet
- +1 205 745 3989 (c/o comments to sysop)
- P.O.Box 2403 Auburn, AL 36849
-
-
-