In linux, in bash scripting, while loops are inclosed in do/done, while if/else statements are enclosed in [...] / [...]
Answer
if/fi
Question
In linux, in bash scripting, while loops are inclosed in do/done, while if/else statements are enclosed in [...] / [...]
Answer
?
Question
In linux, in bash scripting, while loops are inclosed in do/done, while if/else statements are enclosed in [...] / [...]
Answer
if/fi
If you want to change selection, open document below and click on "Move attachment"
7. Shell Scripting lt stands for less than). The if command executes all the lines between the if and the fi (``if'' spelled backwards). 5 X=10 Y=5 if test "$X" -gt "$Y" ; then echo "$X is greater than $Y" fi The <span>if command in its full form can contain as much as: 5 X=10 Y=5 if test "$X" -gt "$Y" ; then echo "$X is greater than $Y" elif test "$X" -lt "$Y" ; then echo "$X is less than $Y" else echo
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.