まとめ
read
コマンドを使う
詳細は man read
か検索で確認のこと
使い方
#!/bin/bash read -p "Please enter some text: " TXT echo "Your entered text is:" echo $TXT
$ ./parrot.sh Please enter some text: foo Your entered text is: foo
read
コマンドを使う
詳細は man read
か検索で確認のこと
#!/bin/bash read -p "Please enter some text: " TXT echo "Your entered text is:" echo $TXT
$ ./parrot.sh Please enter some text: foo Your entered text is: foo