当前位置:网站首页>Cygwin 中的 rename 用法
Cygwin 中的 rename 用法
2022-04-23 11:02:00 【爱博客大伯】
* Cygwin中的 rename
$ rename -h
用法:
rename [options] <expression> <replacement> <file>...
选项:
-v, --verbose 解释正在进行的操作
-s, --symlink act on the target of symlinks
-h, --help 显示此帮助并退出
-V, --version 输出版本信息并退出
更多信息请参阅 rename(1)。
用 man rename 1可以看到更多帮助。
* 文件重命名
目标将『Hello World 音频文件.mp3』改为『Hello World.mp3』,即去掉文件名中的『 音频文件』(有个空格)。
$ ls
'Hello World 音频文件.mp3'
$ rename -v " 音频文件" "" *.mp3
`Hello World 音频文件.mp3' -> `Hello World.mp3'
命令 rename -v " 音频文件" "" *.mp3 ," 音频文件" 里有个空格,有空格需要用双引号括起来。 如果没有空格,可以不用双引号。
此命令对所有当前目录中的.mp3文件重命名,将文件名中的" 音频文件"(不带双引号)替换为空,即去掉。
* 补充:在cygwin中显示中文
Locale为『zh_CN』,Character set为『UTF-8』。

版权声明
本文为[爱博客大伯]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u013553529/article/details/84888665
边栏推荐
- How to use JDBC callablestatement The wasnull () method is called to check whether the value of the last out parameter is SQL null
- Cve-2019-0708 vulnerability exploitation of secondary vocational network security 2022 national competition
- Dirichlet prefix sum (number theory optimization formula sub complexity weapon)
- Learning website materials
- Source insight 4.0 FAQs
- Ueditor -- limitation of 4m size of image upload component
- Manjaro installation and configuration (vscode, wechat, beautification, input method)
- 一个微博数据库设计带来的简单思考
- Jupyter Lab 十大高生产力插件
- Visualization Road (11) detailed explanation of Matplotlib color
猜你喜欢

Introduction to data analysis 𞓜 kaggle Titanic mission (IV) - > data cleaning and feature processing

Idea - indexing or scanning files to index every time you start

Google Earth Engine(GEE)——将原始影像进行升尺度计算(以海南市为例)

Comparison and practice of prototype design of knowledge service app

Mysql8. 0 installation guide

Jupyter lab top ten high productivity plug-ins

JVM - common parameters

More reliable model art than deep learning

ConstraintLayout布局

Solutions to common problems in visualization (IX) background color
随机推荐
About the three commonly used auxiliary classes of JUC
Visual Road (XII) detailed explanation of collection class
MIT:用无监督为世界上每个像素都打上标签!人类:再也不用为1小时视频花800个小时了
Latex usage
Alarm scene recognition
VIM + ctags + cscope development environment construction guide
Cumcm 2021 - B: préparation d'oléfines C4 par couplage éthanol (2)
Qinglong panel pull library command update [April 20, 2022] collection is not lost
软件测试人员,如何优秀的提Bug?
Detailed explanation of typora Grammar (I)
[Niuke challenge 47] C. conditions (BitSet acceleration Floyd)
CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
Manjaro installation and configuration (vscode, wechat, beautification, input method)
Chapter 1 of technical Xiaobai (express yourself)
How to bind a process to a specified CPU
Visualization Road (11) detailed explanation of Matplotlib color
Solutions to common problems in visualization (IX) background color
【leetcode】107.二叉树的层序遍历II
Reading integrity monitoring techniques for vision navigation systems - 5 Results
Visual common drawing (IV) histogram