| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 9141.1 |  | NETRIX::"[email protected]" | Chyan,Chia-Jen Liu | Wed Mar 12 1997 13:21 | 15 | 
|  | 
The following will work for both ksh and sh.
You can also do a manpage on expr.
 
$ count=1
$ c=`expr $count + 1 `
$ echo "New count is $c"
New count is 2
Regards,
Chia-Jen Liu Chyan
CSC Atlanta
[Posted by WWW Notes gateway]
 | 
| 9141.2 | csh example | NETRIX::"[email protected]" | leon strauss | Wed Mar 12 1997 16:51 | 7 | 
|  | Fwiw, this csh example works for me ...
	set count=0
	@ count = $count + 1
	leon
[Posted by WWW Notes gateway]
 | 
| 9141.3 | ++ | VAXCPU::michaud | Jeff Michaud - ObjectBroker | Wed Mar 12 1997 20:30 | 8 | 
|  | > Fwiw, this csh example works for me ...
> 	set count=0
> 	@ count = $count + 1
	And don't forget this is the "C" shell, so when in Rome ...
		set count=0
		@ count++
 | 
| 9141.4 |  | SANITY::LEMONS | And we thank you for your support. | Wed Mar 12 1997 21:50 | 3 | 
|  |     Neat-o!  Thanks, all, for the fast response!
    
    tl
 |