Question: Hello, I really need help for my linux shellscript. Using putty and vi /T/ests to see t/hat the user input at least 1 com/mand line

Hello, I really need help for my linux shellscript. Using putty and vi

/T/ests to see t/hat the user input at least 1 com/mand line argument, if the user did not en//ter at least 1 command line argument, you need to tell them that they need to try again and /enter at least 1 command line arg and exit with an exit code of 1.

Asks the user to enter his/her name and then returns to him/her the name that they entered and a greeting.

It will then stop and tell them the number of command line arguments they entered and the name of the program that they are running even if they copied it and changed the name, and press enter to continue.

The script will then count down the number of command line arguments that are left, printing one per second to the screen reporting how many command line argumnts are left. (use the shift builtin in a loop). So the screen would do a countdown 6 5 4 3 2 1 (if I had entered 6 six command line arguments).

When the last command line argument has been reached (shifted over to $1) the program will tell the user the value of the command line argument in a statement such as "The last command line argument that you entered is ______ .(whatever it's value was is to be printed there.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!