Nov 20, 2001 #1 FlashGorden IS-IT--Management Joined Nov 8, 2001 Messages 22 Location EU I need a counter in a ksh for loop but my syntax is wrong. All I need is a count= count+1. Thanks
Nov 20, 2001 1 #2 grega Programmer Joined Feb 2, 2000 Messages 932 Location GB If you have something like ... VAR=1 Then echo $VAR will show 1. To increment it, you can say VAR=`expr $VAR + 1` Greg. Upvote 0 Downvote
If you have something like ... VAR=1 Then echo $VAR will show 1. To increment it, you can say VAR=`expr $VAR + 1` Greg.
Nov 21, 2001 #3 Guest_imported New member Joined Jan 1, 1970 Messages 0 ((COUNTER += 1 )) will increase $COUNTER by 1 Upvote 0 Downvote
Nov 21, 2001 #4 grega Programmer Joined Feb 2, 2000 Messages 932 Location GB I like that Greg. Upvote 0 Downvote