
Linux Shell Script
5581
£15/hr(approx. $20/hr)
- Posted:
- Proposals: 3
- Remote
- #47083
- Archived
Description
Experience Level: Intermediate
I need a Linux shell script. (parameters.sh) that will display at least three command line arguments. An example command might look like the following:
$ ./parameters.sh 1 two linux 10
I was called with 4 parameters
The script name is: ./paramters.sh
The first parameter is: 1
The second parameter is: two
The third parameter is: linux
All parameters are: 1 two linux 10.
At least three command line arguments must be given, so check for the proper number of command line arguments first and report the actual number of command line argument less than three that were given ... i.e. script must show:
$ ./paramters.sh dog cat
Error! This script requires at least 3 parameters to run. You entered only 2!
Terminating script execution.
The last line should bring ALL the command line parameters that were given.
$ ./parameters.sh 1 two linux 10
I was called with 4 parameters
The script name is: ./paramters.sh
The first parameter is: 1
The second parameter is: two
The third parameter is: linux
All parameters are: 1 two linux 10.
At least three command line arguments must be given, so check for the proper number of command line arguments first and report the actual number of command line argument less than three that were given ... i.e. script must show:
$ ./paramters.sh dog cat
Error! This script requires at least 3 parameters to run. You entered only 2!
Terminating script execution.
The last line should bring ALL the command line parameters that were given.
Mike W.
100% (1)Projects Completed
12
Freelancers worked with
6
Projects awarded
57%
Last project
5 Nov 2012
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies