DBe*_*nko 14
用途rename:
rename 's/.old$/.new/' *.old
如果您安装了perl rename(有不同的rename实现),您可以执行以下操作:
$ ls -1
test1.foo
test2.foo
test3.foo
$ rename 's/\.foo$/.bar/' *.foo
$ ls -1
test1.bar
test2.bar
test3.bar
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6634 次 |
| 最近记录: |