How to read command line arguments in a bash script
A bash script rarely runs standalone. Rather, you often pass one or more arguments to the script from the command line to modify its run-time behavior. In more advanced cases, you may want to pass command-line options to your script (e.g., "-h" or "-f my.txt") to optionally change the default settings of the script. In this tutorial let's find out how you can pass command-line arguments and how you can handle command-line options in a bash shell script.
|
|
Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.