Bash shell scripting question
This just deals with easy if statements, but I'm not too knowledgible about Bash's quirks.
I wrote a script that only needs one argument passed into it. However, I'm not sure how to output instructions about how to use the script if no argument is passed in.
Basically, my whole script consists of a lot of if's. But, problem number 2 arises if the proper if isn't found. I tried to put an else at the end, but that doesn't work because it is a standalone else outside of an if statment.
My solution is this, but how do I implement it. How would have an outside if that accepts any arguement but blank? Then have a second if to accept nothing.
Thanks for your time.