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.
catファイル
$VAR
猫のスクリプト
#!/bin/bash CONTENT=$(<file) echo $CONTENT
。/脚本
「$VAR」ではなく、変数の実際の値を取得したいのですが。より弱い引用を取得するにはどうすればよいですか?どうもありがとう!
これはそれを行う必要があります:
CONTENT=$(eval echo -e `<file`)