07 September 2015

Boolean operators (short circuited)

&& and
|| or
! not

Existence of a file

if [ -e filename ]; then

Existence of a directory

if [ -d directoryname ]; then

Numbers

if [ num1 -gt num2 ]; then