Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

"fi" unexpected error

$
0
0
Here is my code. I have to put it in picture because im new to shell and i really dont know how to copy text out of my putty application, bare with me. Im not sure why im getting this error... i need all of my "fi" commands from my understanding. The code is supposed to either accept one perimeter as a directory and tell you which program has the most lines in it. If no perimeters then it defaults to root "."

It throws this error:
./maxline.sh: line 13: syntax error at line 27: 'fi' unexpected

Posted Image

Also there are some more lines above t he ERROR variable, but its all personal information for school that i cut out, so the numbers for the syntax errors are off a few lines.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>