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.
猫文件
$VAR
猫脚本
#!/bin/bash CONTENT=$(<file) echo $CONTENT
。/脚本
我想获得变量的实际值,而不是“$VAR”。如何获得较弱的报价?非常感谢!
这应该这样做:
CONTENT=$(eval echo -e `<file`)