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
原文地址:https://www.cnblogs.com/xueliangliu/p/2962175.html