linux - How to compare strings in Bash script - Stack Overflow

linux - How to compare strings in Bash script - Stack Overflow

瀏覽:1336
日期:2025-04-28
I need to compare a variable to some string (and do something if they match). ... Good point, when applied in other languages. It makes little sense here: assigning the string would need to lose the quotes, the $ and replace the "==" with "=" ....看更多