![]() |
[Help/Solved] Conditional Operations for Shell Scripting
okay guys i would really appreciate it if someone tells me how can i produce a command that goes as follow
Code:
echo $x Code:
if [ 80 -gt $x -gt 20 ] also tried Code:
if [ $x -ge 20 ]; i would really appreciate some help as i know its simple to you but not me cause so far I've been stuck , as I'm working on this shell script and need to put the X between two values. cheers, bakuur |
Re: [Help] Conditional Operations for Shell Scripting
It should be
Code:
if [ $x -gt 20 ] && [ $x -lt 80 ]; then |
Re: [Help] Conditional Operations for Shell Scripting
if [ $x -gt 20 -a $x -lt 80 ]
|
Re: [Help] Conditional Operations for Shell Scripting
Quote:
finally got the chance to work on it hope this works really |
Re: [Help] Conditional Operations for Shell Scripting
baftă ( romanian )
|
Re: [Help] Conditional Operations for Shell Scripting
Quote:
|
All times are GMT. The time now is 21:10. |
vBulletin® Version 3.8.8