Tyl*_*man 1 linux bash command-line-interface
任何 bash 大师都知道如何将下面的命令变成一行代码?
trutch:$ touch app/views/pages/_sponsors.html.erb
trutch:$ touch app/views/pages/_donations.html.erb
trutch:$ touch app/views/pages/_volunteers.html.erb
Run Code Online (Sandbox Code Playgroud)
我希望能够做这样的事情:
trutch:$ touch app/views/pages/[ARRAY].html.erb
Run Code Online (Sandbox Code Playgroud)
如果您有任何诸如此类的 bash 技巧来源,也将不胜感激。
简单的 bash 列表可用于此目的:
touch app/views/pages/_{sponsors,donations,volunteers}.html.erb
Run Code Online (Sandbox Code Playgroud)
查看Bash One-Liners获取提示,但手册页也非常详细。
归档时间: |
|
查看次数: |
1303 次 |
最近记录: |