In UNIX shell scripting, I have seen double and single square brackets.
eg . if [[ $VAR -eq $VALUE ]] then
....
fi
As well as
if [ $VAR -eq $VALUE ] then
...
fi
Can someone tell me where to use double brackets and why.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.