重命名一组文件
我想将文件夹中具有此模式 -512-
的所有文件重命名为 -256-
? 我怎样才能用mv做到这一点?我知道我必须使用 xargs
并将其通过管道传递给 find
但不知道如何告诉 xargs
find . -name *-512-*
和
xargs mv ?????
I want to rename all files with this pattern -512-
to -256-
in a folder?
How can I do that with mv? I know I have to use xargs
and pipe it to find
but don't know how to tell xargs
find . -name *-512-*
and
xargs mv ?????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道你问过
mv
,但这似乎更像是rename
的工作:I realize you asked about
mv
but this seems more like a job forrename
imo: