Skip to content

Instantly share code, notes, and snippets.

@goFrendiAsgard
Created January 12, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goFrendiAsgard/eeccaf6f09bb4993428764ec90268fce to your computer and use it in GitHub Desktop.
Save goFrendiAsgard/eeccaf6f09bb4993428764ec90268fce to your computer and use it in GitHub Desktop.
#!/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