I don't have csh, script but you can write something as follows using bash shell:
Code:
#!/bin/bash
INPUT=file.txt
count=0
exec 3<&0
exec 0<$INPUT
while read line
do
input1=$(echo $line | awk '{ print $1}')
input2=$(echo $line | awk '{ print $2}')
input3=$(echo $line | awk '{ print $3}')
AlphaSim -nx 10 -ny 10 -nz 10 -dx 1 -dy 1 -dz 1 -power -ax 2 -ay 2 -az 2 -zsep ${input1} -rmm ${input2} -pthr ${input3} -iter 1000 -out power_2x2x2_zsep00${count}.txt
count=$( expr $count + 1 )
done
exec 0<&3