Code:
1 counter=1
2 var=1456
3 while [ $counter -le $var ]; do
4 asd=$(head list.txt -n $counter | tail -n 1)
5 echo "$counter = $asd "
6 ls -l $ias >> asd.txt
7 ls -l $as > ./results/result$counter.txt
8 ./read_wrf_nc -EditData SNOW $as > ./results/result$counter.txt
9 echo " yes"
10 let counter++
11 done
12 echo "-------------------------"
13 echo " done all "
'line 22' ?
Anyway, the script works fine, except for the commands
made by the executable called in line 8, which I of course
can't replicate, have no WRF installed.
May be an error in " read_wrf_nc " ?
.....
'ls test-script-directory'
asd.txt list.txt read_wrf_nc* results/ script.txt
.....