# 使用通配符批量创建 多个文件:
$ touch zqunor{1..7}.txt

# 批量将多个后缀为 .txt 的文本文件重命名为以 .c 为后缀的文件:
$ rename 's/\.txt/\.c/' *.txt

# 批量将多个文件的文件名改为大写:
$ rename 'y/a-z/A-Z/' *.c

 

 

来源:https://www.shiyanlou.com/courses/running#doc-section-4

相关文章:

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