Showing posts with label User interface. Show all posts
Showing posts with label User interface. Show all posts

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