I tried using this:
$ if [$a == 1] then { echo 'yes'; } fi;
but I get an error:
-bash: syntax error near unexpected token `}'
What is the correct format? I tried several with no luck.
|
And the command following Finally, So you might have meant:
But you could use arithmetic evaluation instead:
(In arithmetic evalution, equality is For more information about |
|||
|
You can also tell it's a real command with this example:
The first result is the builtin version of On Fedora you can see what RPM it's a part of:
Given this you need to make sure that there are spaces around any commands so that they get parsed correctly. Doing this:
Would be identical to this:
The |
|||
|