bash shell script check input argument - Stack Overflow

bash shell script check input argument - Stack Overflow

瀏覽:692
日期:2025-10-01
I need to check the existence of an input argument. I have the following script: if [ "$1" -gt "-1" ] then echo hi fi I get [: : integer expression expected How do I check the input ......看更多