I have the following Korn Shell script code:
if [[ -f $1$2 ]] then #if file exists then get a count
a=`wc -l < "$1$2"`
if $a > 0 then
This gives me the following syntax error:
FindFile.ksh: syntax error: `fi' unexpected
I tried pretty much everything. I tried moving the inner IF LOOP after the first IF LOOP. I get an "else expected" error. I
would appreciate any help.