Search Results

Search: Posts Made By: RLOA
4,065
Posted By ahamed101
Make sure you have enough space in the if...
Make sure you have enough space in the if condition

Following code will fail
if ["$a" = "oops"];then

Correct it like this
if [ "$a" = "ahaa" ];then

regards,
Ahamed
4,065
Posted By Scrutinizer
Also, the correct syntax requires a single =...
Also, the correct syntax requires a single = sign, not ==
4,065
Posted By ahamed101
Your if loop is wrong. If you want to club more...
Your if loop is wrong. If you want to club more than one condition it should be done like this

if [ $a == 1 ] || [ $b == 2]; then...

Your code should look something like this

if [ "$mp1" ==...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy