Monday, October 17, 2016
Bash (Unix shell): Command prompt (コマンドプロンプト)
Command:
$ read -p "Do something? "; if [ $REPLY == "y" ]; then echo yay; fi
Result:
Do something?
User input:
y
Result:
yay
Newer Post
Older Post
Home