devops-exercises/topics/shell/num_of_args.md

8 lines
278 B
Markdown
Raw Normal View History

2021-11-07 16:54:06 +01:00
## Number of Arguments
### Objectives
* Write a script that will print "Got it: <argument value>" in case of one argument
* In case no arguments were provided, it will print "Usage: ./<program name> <argument>"
* In case of more than one argument, print "hey hey...too many!"