Linux 文件或文件夹批量修改名称。

以前总是用mv来进行改名,批量修改的时候总是还要自己写脚本,不是太方便。原来还有一个rename是专门用来改名的,方便那。具体用法看man吧,很简单的。比如:

  • rename s/^/test_/ *

把当前所有文件的名称前面加上前缀test_。简单吧。

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in linux应用, 技术为本. Bookmark the permalink.

One Response to Linux 文件或文件夹批量修改名称。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>