I want to write a bash script and one of the command line arguments is a string like A
:
sh bash.sh file.in A
The script contains:
format=$2
if [$format = "A"]; then
...
else
...
fi
As a result I get this error:
bash.sh: line 20: [A: command not found