Created
January 12, 2020 05:30
-
-
Save goFrendiAsgard/eeccaf6f09bb4993428764ec90268fce 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/sh | |
# baca dari input argument | |
NAME=${1} | |
echo Hello ${NAME} | |
# baca dari jawaban user | |
echo "What is your name again?" | |
read NAME | |
echo Hello ${NAME} | |
# atau bisa juga seperti ini | |
read -p "What is your name?" NAME | |
echo Hello ${NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment