Changes

Jump to navigation Jump to search
117 bytes added ,  06:14, 31 July 2015
Line 146: Line 146:  
</source>
 
</source>
 
=== Check if a file exists ===
 
=== Check if a file exists ===
 +
if [ -f $FILE1 ]
 +
then
 +
if [ -f $FILE2 ]
 +
then
 +
  echo OK
 +
  # MAIN PROGRAM HERE
 +
fi
 +
fi
 +
 +
=== Check if directory exists ===
 
<source lang="bash">
 
<source lang="bash">
 
#!/bin/bash
 
#!/bin/bash

Navigation menu