迅雷下载完后,有时有的文件保留下载时扩展名“.bt.xltd”。

需要搜索包含子目录的文件,去掉这扩展名。

使用到 MSYS2 环境,在其中运行 find 命令,和 shell 脚本。

列出:

find . -name "*.bt.xltd"

重命名,去掉迅雷临时扩展名

find . -name "*.bt.xltd" | while read line ; do mv "$line" "${line%.bt.xltd}"; done

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-11-04
  • 2021-12-10
  • 2021-12-15
  • 2022-02-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-09-23
  • 2021-04-16
  • 2021-12-25
相关资源
相似解决方案