I have seen here this problem many times but I can't find solution for my issue.
I have this simple script:
while [ $counter -gt 0 ]; do
factorial=$(( $factorial * $counter ))
counter=$(( $counter - 1 ))
I run it in putty and i got this error:
./fakt.sh: line 9: syntax error: unexpected end of file
This is pretty strange since this script has only 8 lines... I just cant fix it. Does anybody have any idea?