批量更改文件扩展名_文件扩展名更改快捷方式

批量更改文件扩展名

Changing the extension of a file seems like something you would do often enough to know how to do it from command line.  One annoying part of moving a file is repeating the file name a second time when all I want to do is change the extension.  A minor annoyance but an annoyance nonetheless.

更改文件的扩展名似乎很常见,您通常会从命令行知道如何进行操作。 当我要做的就是更改扩展名时,移动文件的一个烦人的部分就是第二次重复文件名。 虽小但很烦。

I recently found that you can quickly change a file's extension with this handy shortcut:

我最近发现,您可以使用以下便捷快捷方式快速更改文件的扩展名:


# mv filename.{old,new}
mv code.{txt,js}


The braced syntax provides a way to quickly swap out the file extension without needing to repeat the file name.  Sweet!

大括号语法提供了一种快速交换文件扩展名的方法,而无需重复文件名。 甜!

翻译自: https://davidwalsh.name/file-extension-change-shortcut

批量更改文件扩展名

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值