1 2 3 4 5 6 7 8 9 10
#!/bin/bash errors=$(<test.log) if ["$errors"] then echo "$errors" fi # Output: ./error.sh: line 3: []: command not found