bash - how to represent multiple conditions in shell script? - Stack Overflow

bash - how to represent multiple conditions in shell script? - Stack Overflow

瀏覽:995
日期:2025-11-17
I want to represent multiple condition like this: if [ ( $g -eq 1 -a "$c" = "123" ) -o ( $g -eq 2 -a "$c" = "456" ) ] then echo abc; else echo efg; fi but when I execute the...看更多