Created
June 10, 2024 17:51
-
-
Save holman57/2240976c5e8fc6cddfc68c1530a48e6e to your computer and use it in GitHub Desktop.
Check arguments passed to a bash shell
This file contains hidden or 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 | |
| if [ $# -eq 0 ] | |
| then | |
| echo -e "You need to specify the target domain.\n" | |
| echo -e "Usage:" | |
| echo -e "\t$0 <domain>" | |
| exit 1 | |
| else | |
| domain=$1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment