And what shell do you want to use? - In modern shells (ksh, bash, ...) you
could use an arithmetic for-loop, the construct that probably matches best
(optically) with your code above...
for ((i=0; i<=359; i++))
do
exb dosxyznrc name_${i}.egsinp etc
done
> ex dosxyznrc is a command with its own script, will it still work?
If you can call that script stand-alone as you did you can also use it in
the for-loop; your command 'exb' needs execution permission for that.
Otherwise, if it's also a shell script use the respective shell to call it,
e.g. maybe one of
bash exb dosxyznrc name_${i}.egsinp etc
sh exb dosxyznrc name_${i}.egsinp etc
Note that the available shell languages differ. There's a widely available
shell language subset defined by a standard (POSIX), but modern systems
support more powerful or better readable constructs (like the loop above).
Janis