Linux/BASH: Difference between revisions
< Linux
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Shebang == | == Shebang == | ||
* <pre>#!/bin/bash</pre> | * <pre>#!/bin/bash</pre> | ||
== If == | |||
* | |||
<pre> | |||
if [ condition ] | |||
then command1 | |||
else command2 | |||
fi | |||
</pre> | |||
Revision as of 15:18, 4 August 2020
Shebang
#!/bin/bash
If
if [ condition ] then command1 else command2 fi