Computing.Net > Forums > Unix > ksh script if then if?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ksh script if then if?

Reply to Message Icon

Name: Douglas A. Maske
Date: October 3, 2003 at 09:10:21 Pacific
OS: Solaris 8
CPU/Ram: 512 Mb
Comment:

Why doesn't if then if work:

if [[ $BLAH = "blah" ]]
then
echo "User blah already exists.\n"
if [[ $KEY_CHECK1 != "filename"
then
echo "Generating filename\n"
touch filename
echo "Done...\n"
fi
exit0;
fi

# Rest of code...



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: October 3, 2003 at 09:55:52 Pacific
Reply:

I'm reaching here but I'm guessing the missing ]] have an effect.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ksh script if then if?

Unix, Script, If then else www.computing.net/answers/unix/unix-script-if-then-else/6446.html

ksh script www.computing.net/answers/unix/ksh-script/6748.html

Unix-ksh script www.computing.net/answers/unix/unixksh-script/6758.html