Open Source Software and Linux:



January 24, 2009  8:01 PM

Setting script variables using the if..then statement

Posted by: Xjlittle
bash, if..then, korn shell, ksh, Linux, unix, variable

Recently I found myself wanting to set some variables in a script that I was writing using the if..then statement. I am using the Korn shell but this is bash compatible. I wanted to do this as the variable command changed depending on if the script was running on Linux, HP-UX or AIX. This...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: