rename multi files with sed

It is a very useful pipe command that can rename multi files with the same pattern

rename:ls *old|sed 's/\(.*\)\.old/mv \1.old  \1.new/'|sh

posted on 2011-03-05 00:07  xueliangliu  阅读(156)  评论(0编辑  收藏  举报

导航