How to use a function?

view story

http://www.unix.com – I am trying to use a function in my script. I'm not quite sure how to complete it. This is my assignment: The first version of hw12.sh should display the usage message "usage: $0 argument", "Enter one or more arguments." when no arguments are on the command line. $ hw12.sh usage: hw12.sh argument Enter one or more arguments. - The second version of hw12.sh should display the message "There were $# arguments on the command line" if there were 1 or more arguments on the command line. Here is an example. $ hw12.sh abc 123 There were 2 arguments on the command l (HowTos)