• Use grep -q instead of comparing output with [ -n .. ].
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions