rename

1.不过它要用 perl 正则表达式来作为参数,

2.举例如下:

touch  test{1..5}.txt  ##使用通配符创建5个文件

rename 's/\.txt/\.doc/'  *.txt  ##将后缀为TXT的文件重命名为doc文件

rename  'y/a-z/A-Z/'  *.doc   ##批量将文件名改为大写

ps:没事就多看看文档了,,man  rename就OK啦

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-12-19
  • 2022-01-20
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案