Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Simple looping in shell

$
0
0
Hii all.
I have a problem with my shell script.
This is my code
Code:

while [ $count -le 13526 ]
do
    space.exe inputs/gr$count >> outputs/t$count
    count=$[$count+1]
done

I ussually work in cygwin. When i tried in linux(ubuntu, kali linux) i found error said
Code:

Syntax error : end of file unexpected (expecting "do")
Need a really fast help for that :). Thank you..

Viewing all articles
Browse latest Browse all 16232

Trending Articles