IF syntax
Jon Deutsch
jon at brahms.udel.edu
Thu Nov 15 04:12:45 AEST 1990
OK, second try at the question:
I'm using sh to impliment an IF statement. Can't get it to work.
Here's the code:
#!/bin/sh
if [$temp != ''] then
echo 'remote-caller' >> .people;
else
echo 'inside-caller' >> .people;
fi
I keep getting an ELSE UNEXPECTED.
So, I tried an ELIF, but no go.
Any answers?
(as you can see, I'm new to sh!)
thanx
X-------------------+--------------+-----------------------X
| | |\ |>jon at brahms.udel.edu<| "For my 2 cents, |
| \|on |/eutsch |>>-----------------<<| I'd pay a dollar" |
X------+--------------------+--------------------+---------X
More information about the Comp.unix.programmer
mailing list