【发布时间】:2014-12-28 02:14:51
【问题描述】:
我想知道如何创建一个 bash 脚本,询问用户所需的名称,然后创建一个具有该名称的文件。
类似:
introduce name: test [enter]
(then use that name as the name of the final zip)
zip -9 test.zip *
(creating the file)
"test.zip" crated.
(print out that message)
end
【问题讨论】:
-
你有没有尝试过?你看过任何“脚本入门”教程吗?
标签: linux bash terminal console