syntax error near unexpected token `fi'
I am just learning how to write a script and this is my 1st script to change the case of the filenames in the current directory.I am using RHEL5 server.
But each time I execute this it says Code:
./tr1.sh: line 20: syntax error near unexpected token `fi' Code:
#!/bin/bash |
You need a then after the elif or you need to replace the entire elif line with else
Code:
elif [ $i != $myscriptname ] |
Quote:
|
All times are GMT -5. The time now is 01:14 AM. |