Start Your Free Software Development Course Also, we can read the content of a shell script by the use of positional parameters. For example, we can use the parameters to have an interactive command line to display a particular file name and can perform operations such as overriding it or just simply to check if the file exists or not. Parameters are used to help in choosing options from the command line. by the help of command-line options along with the arguments. To add additional features to the command while working with shell script can be achieved by using parameters i.e. The variables are managed by the shell or by the users. Special parameters are pre-set by the shell and these parameters are read-only. A parameter can be an argument or a variable can be called as a parameter even though it is not used as part of a command argument. They are called variables and special parameters. Generally, there are two types of parameters. Among these parameters, the named spaces are there in the memory and they permit us to access these stored variables. Shell Spscript parameters are the entities that are used to store variables in Shell.
0 Comments
Leave a Reply. |