Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

17 bytes added, 09:07, 5 September 2020
Additional Logic Statements
''Example:''
<span style="font-family:courier;font-weight:bold;">num1=5<br>num2=10<br>if test $num1 –lt $num2<br>then &nbsp;&nbsp;&nbsp;echo “Less Than”<br>elif test $num1 –gt $num2<br>then<br> &nbsp;&nbsp;&nbsp;echo “Greater Than”<br>else &nbsp;&nbsp;&nbsp;echo “Equal to”<br>fi</span><br><br>
===Additional Loop Statements===
13,420
edits

Navigation menu