Redian新闻
>
总结一下:如何在unix下一次性rename n-多个文件名
avatar
总结一下:如何在unix下一次性rename n-多个文件名# Unix - 噫吁兮,危乎高哉
n*l
1
Thank you to all who gave me help and sugguestions on that urgent file rename
post I posted several days ago. 在这里把大家的建议都收集总结一下,供参考。
Rename several hundred files named "img*.jpg" to "img*.JPG"
avatar
c*o
2
If you are using Linux. Maybe you can try command "rename"
sample:
rename .JPG .jpg *.JPG (rename *.JPG -> *.jpg
rename .html .htm *.html (rename *.html -> *.htm)

rename

【在 n*l 的大作中提到】
: Thank you to all who gave me help and sugguestions on that urgent file rename
: post I posted several days ago. 在这里把大家的建议都收集总结一下,供参考。
: Rename several hundred files named "img*.jpg" to "img*.JPG"

avatar
k*j
3

another approach:
\ls img*.jpg | sed 's/\(.*\)jpg/mv & \1.JPG/' | sh
rename

【在 n*l 的大作中提到】
: Thank you to all who gave me help and sugguestions on that urgent file rename
: post I posted several days ago. 在这里把大家的建议都收集总结一下,供参考。
: Rename several hundred files named "img*.jpg" to "img*.JPG"

avatar
c*n
4
this is novel

【在 k*j 的大作中提到】
:
: another approach:
: \ls img*.jpg | sed 's/\(.*\)jpg/mv & \1.JPG/' | sh
: rename

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。