Well, this is likely to be very obvious to anyone who has spent more time with bash than me.
I am trying to run this code:
#!/bin/bash if ["1" -eq "2"] then echo "True" else echo "False" fi
but when I execute the file, it sends back
./test.sh: line 3: 1: command not found False
There must be something important that I am missing. I saw people use a semicolon after brackets, this does not seem to make any difference ...: S
bash
Margaret
source share