【发布时间】:2015-10-16 03:26:34
【问题描述】:
这里是我试图用 bash 程序实现的一些伪代码。
这个程序将被调用:
filesplit -u 或 filesplit --update
filesplit
if -u (or --update) is set:
echo "Update"
else:
echo "No Update
如何在 bash 脚本中实现这种拆分?
【问题讨论】:
-
Script parameters in Bash 的可能重复项
标签: bash unix if-statement arguments command-line-arguments