chuckster43
Technical User
I'm using #!/bin/csh shell and the 'if' statements are formatted in the following fashion:
if [ $var -eq $var2 ]; then
if [ $var -eq <integer> ]' then
run this command
else
run alternate command
fi
else
if [ $var3 -le <negative integer> ]; then
run this command
else
run alternate command
fi
fi
When I run it, I get an error message of "Missing ]"
Can anyone see what is causing this? I'd appreciate any assistance on this.
Thanks,
if [ $var -eq $var2 ]; then
if [ $var -eq <integer> ]' then
run this command
else
run alternate command
fi
else
if [ $var3 -le <negative integer> ]; then
run this command
else
run alternate command
fi
fi
When I run it, I get an error message of "Missing ]"
Can anyone see what is causing this? I'd appreciate any assistance on this.
Thanks,