Shell Script To Find Arguments Length or Number Arguments | Sany's Linux and Open Source Blog

Shell Script To Find Arguments Length or Number Arguments | Sany's Linux and Open Source Blog

瀏覽:347
日期:2024-05-21
In Linux there is a variable available to holds the length of arguments. The variable is $#. Usage: Write a script t.sh as following echo $# Now save and exit form script. To execute the Script run the following code on your terminal. $ sh t.sh 1 1 1 The ...看更多