Computer Science Canada

Incrementing in Unix

Author:  jamonathin [ Mon Oct 08, 2007 3:37 pm ]
Post subject:  Incrementing in Unix

Hey all, im having the damnest time trying to figure out how to do something like
c:

int c = 0;
c++;

in csh.

I've been looking everywhere and i cant get anything to work =/

Author:  OneOffDriveByPoster [ Mon Oct 08, 2007 7:08 pm ]
Post subject:  Re: Incrementing in Unix

jamonathin @ Mon Oct 08, 2007 3:37 pm wrote:
I've been looking everywhere and i cant get anything to work =/

man csh Smile

csh:
#!/bin/csh
set c=0
@ c++
echo $c

Author:  jamonathin [ Tue Oct 09, 2007 2:00 pm ]
Post subject:  Re: Incrementing in Unix

g'ah! thanks man


: