对我来说,bash 脚本总是有些棘手。我有
web_dir=/tng4/users/ldiao/AQF/wrf-chem-result/
rm "$web_dir""three_days_ago/*.gif"
错误信息是
rm: cannot remove '/tng4/users/ldiao/AQF/wrf-chem-result/three_days_ago/*.gif':
No such file or directory
但如果我改为
rm "$web_dir"three_days_ago/*.gif""
然后它工作。没有拼写错误。有人可以为我解释原因吗?谢谢!