-
-
Save reharik/9b5a9f3ec7fcf00483359345dbdafaa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
getopts n: flag | |
if [ -z "$OPTARG" ]; then | |
read -p "Please enter a number: " -r num | |
else | |
num=$OPTARG | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment