Software
>>
OS
>>
Unix
>>
Linux
>>
Shell
>>
How to write bash script with fixed number of arguments
Example for two arguments #!/bin/bash if [ $# -eq 2 ] then # This part will do the actual processing someothercommand.sh else # This part will inform user of the syntax expected echo echo "usage: myscript.sh
" echo fi
Please enable JavaScript to view the
comments powered by Disqus.