Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Zenity ツールを使用して入力ダイアログ ボックスをポップアップ表示しています。しかし、テキストボックスに入力された値を変数に保存するにはどうすればよいですか? 現在、文字列はコンソール自体に出力されています。変数に格納して処理したい!
コマンド置換を使用します。
reply=$(zenity --entry)
出力の値を割り当てるには、コマンドを $(command) でラップし、変数に割り当てます
VALUE=$(zenity --entry)