Help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help
# 1  
Old 12-02-2004
Help

I can not figure this assignment outSmilie Write a shell script named showparms which will disp1ay each positional parameter from the shell command line (including $0), as well as the argument count $# and the entire set of command line parameters $@. Your script should display as many positional parameters as there are arguments, but if there are more than nine arguments on the command line display only the first nine positional parameters ($1 through $9). In either case, $@ should show all of the arguments. Be sure to include appropriate comments in your script so I will know what your script is doing. Each parameter should be displayed on a separate line which shows the parameter name and has the parameter value delimited by the angle brackets < and > so that it will be possible to see an argument which consists of a null string (“”) or a blank space or spaces (“ “). Help JulieSmilie
# 2  
Old 12-02-2004
Re: Help

Quote:
Originally posted by Julie 33
I can not figure this assignment out
Please read the rules . Assignment questions are not allowed within the forums.

You should try consulting the documentation available on your UNIX system - i.e. the manual pages (accessed using the "man" command). This should be the first port of call for trying to solve a problem. Consult the manual page for your shell (i.e. "man myshellhere") - you will find all the material you need contained within.

Search this site for examples of usage - and general scripting syntax.

I am locking this thread based on the fact that this is a self-admitted homework post.

Thanks,
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question