[: too many arguments
I am trying to find the output of the piece of code below:
line 4: [: too many arguments
I don't understand the error.
When I modified it a little :
then also an error is shown
line 5: syntax error near unexpected token `$x'
line 5: `if [ ( $x % 2 ) -eq ( $y % 3 ) ]'
Is there a limitation to the arguments inside test ([) command ??
Try it this way:
|All times are GMT -5. The time now is 01:43 AM.|