Fixed Using getopts in bash shell script to get long and short command line options #dev #it #asnwer
Fixed Using getopts in bash shell script to get long and short command line options #dev #it #asnwer
Using getopts in bash shell script to get long and short command line options
I wish to have long and short forms of command line options invoked using my shell script. I know that getopts can be used, but like in Perl, I have not been able to do the same with shell.
Any ideas on how this can be done, so that i can use options like:
./shell.sh copyfile abc.pl /tmp/ ./shell.sh -c abc.pl /tmp/
In…
View On WordPress















