Changes

Jump to navigation Jump to search
323 bytes added ,  00:53, 27 March 2015
Line 36: Line 36:  
=== Conditional ===
 
=== Conditional ===
 
==== if ====
 
==== if ====
 +
<source lang="bash">
 +
#!/bin/bash
 +
if [ "foo" = "foo" ]; then
 +
    echo expression evaluated as true
 +
else
 +
    echo expresion evaluated as false
 +
fi
 +
 +
#Condicional con variables
 +
#!/bin/bash
 +
T1="foo"
 +
T2="bar"
 +
if [ "$T1" = "$T2" ]; then
 +
    echo expresion evaluated as true
 +
else
 +
    echo expresion evaluated as false
 +
fi
 +
</source>
 +
 
==== case ====
 
==== case ====
 
=== User Input ===
 
=== User Input ===
 
=== Arrays ===
 
=== Arrays ===

Navigation menu