0
例如,我有这些文件:如何收集所有自述文件并将其重命名为文件夹?
/Applications/Emacs.app/Contents/Resources/etc/images/custom/README
/Applications/Emacs.app/Contents/Resources/etc/images/ezimage/README
/Applications/Emacs.app/Contents/Resources/etc/images/gnus/README
/Applications/Emacs.app/Contents/Resources/etc/images/gud/README
/Applications/Emacs.app/Contents/Resources/etc/images/icons/README
我想收集所有这些,他们用不同的名字保存在一个目录中,使他们成为这样的事情:
/dest/custom_README
/dest/ezimage_README
/dest/gnus_README
/dest/gud_README
/dest/icons_README
我知道find
和xargs
可能对做这项工作很有用,但不知道如何根据目录名称来执行rename
步骤。
有没有人有关于此的想法?谢谢!