Bash brace expansion_其他_操作系统_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 操作系统 > 其他 > Bash brace expansion

Bash brace expansion

 2010/9/19 23:56:55  yaojingguo  http://yaojingguo.javaeye.com  我要评论(0)
  • 摘要:OneofannoyingthingsaboutLinuxshellisthestrangeshellsyntax.Bashbraceexpansionisanexample.Thefollowingcodecpmenu.lsttommenu.lst.bak:cp/boot/grub/menu.lst{,.bak}Foradetailedexplanation,refertohttp://www.gnu.org/software/bash/manual/bashref.html#Brace
  • 标签:Bash brace expansion

One of annoying things about Linux shell is the strange shell syntax. Bash brace expansion is an example.


The following code cp menu.lst tom menu.lst.bak:


cp /boot/grub/menu.lst{,.bak}


For a detailed explanation, refer to
http://www.gnu.org/software/bash/manual/bashref.html#Brace-Expansion.

?

发表评论
用户名: 匿名