Please help me writing a shell programming using if
else
, all possibile code using [[ ]]
, [ ]
, (( ))
.
I tried but it does not work (you can check my previous question Arithmetic binary operators -gt, -lt give error but work in a shell script).
Here is the C version:
int i = 10, n = 20;
if (i < n)
printf("i smaller");
else if (i > n)
printf("n smaller");
else
printf("same");
Best Answer
What about
second...
and last one...