【发布时间】:2019-08-15 10:52:34
【问题描述】:
我试图理解表达式 f2=${f%????} 在 bash 脚本中的含义。
我尝试在网上搜索一些参考资料,但没有找到有用的东西。
我使用的代码是:
for f in "$@"
do
f2=${f%????}
/usr/bin/openssl smime -in "$f" -verify -inform DER -noverify -out "$f2"
done
【问题讨论】:
-
你读过the Bash manual page吗?尤其是EXPANSION 部分。