27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

if [ −z "$1" ]<br />

then<br />

Filename=names.data<br />

else<br />

Filename=$1<br />

fi<br />

# Default, if no filename specified.<br />

exec 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!