https://stackoverflow.com/questions/13617843/unary-operator-expected If you know you're always going to use bash, it's much easier to always use the double bracket conditional compound command [[ ... ]], instead of the Posix-compatible single bracke…