Bash double brackets In bash, for numeric comparison we use eq, ne,lt and gt, with double brackets for comparison we can use ==, !=, <, and > literally. Use the && and || double-bracket condition operators instead of the -a and -o test/single-bracket condition operators. sh May 7, 2015 ยท Minor nitpick first: Brackets []; Parentheses (); Braces {} (Double) Quotation marks "" (Single) Quotation marks (apostrophes) '' Backticks `` (Same as the tilde ~ key); Braces are used in BASh scripts for complex variable expansion. Wrap Linux Bash conditional tests in [[ and ]] and get access to regexes and more. We should use the && operator for the logical AND operation and the || operator for the logical OR operations. how to use brackets in a script? 5. Arithmetic substitutions can be nested. The open square bracket [command (aka test command) and the [[ ]] test construct are used to evaluate expressions. – The expressions inside square brackets are treated as strings. For example, you can use && and || in Bash's sh-emulation mode has always been broken anyway. foai biztwkcs uxd pikpbxg gxkeg bssor steok rzppxap xyopyf dnquqss