システム開発

bash でテキストファイルの内容を環境変数に設定する

bash でテキストファイルの内容を環境変数に設定するのにはまったので、覚え書きです $ TXT=`cat text.txt` $ echo “$TXT” $ # double quotation で囲むのが要点です