Created
November 16, 2018 03:26
-
-
Save Loveforkeeps/152f004186517150b2e986f72eca6389 to your computer and use it in GitHub Desktop.
文件批量重命名
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `ls | grep pvm` #要重命名的文件 | |
do mv $i `echo $i | sed 's/.pvm//'` #去除.pvm字段 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment