bash and or


Some good syntax examples for using and or within bash.

AND

use -a on the statement

if [ -f "$LOCK_FILE" -a $(echo  "$get") -eq $fail ]

OR

use -o on the statement

if [ -f "$LOCK_FILE" -o $(echo  "$get") -eq $fail ]