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 />

b=`expr $a \< 10`<br />

echo "If a < 10, b = 1 (true)"<br />

echo "b = $b" # 1 ( 3 −lt 10 )<br />

echo<br />

# Note escaping of operators.<br />

b=`expr $a \

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

Saved successfully!

Ooh no, something went wrong!