由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 总结一下:如何在unix下一次性rename n-多个文件名
相关主题
急问。。。urgent...在线等。。。unix中有没有类似于dos里面 tree 的命令?
有关Unix shell script的问题[转载] 问个Unix命令组合
a question about renaming.question about a unix command
help on unix问一个新手的问题
怎样同时改很多文件的名字。Any idea on batch renaming files?
如何显示出“*”a question about rename
如何实现下列功能?how to turn off sendmail
问一个弱智的问题Re: [转载] 一个很急迫的问题,谢谢
相关话题的讨论汇总
话题: rename话题: jpg话题: img话题: 总结话题: several
进入Unix版参与讨论
1 (共1页)
n*l
发帖数: 44
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"
c*o
发帖数: 4
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"

k*j
发帖数: 2
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"

c******n
发帖数: 4965
4
this is novel

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

1 (共1页)
进入Unix版参与讨论
相关主题
Re: [转载] 一个很急迫的问题,谢谢怎样同时改很多文件的名字。
How to use files with names like "-123.txt"?如何显示出“*”
how to rename a bunch of files如何实现下列功能?
A question about awk问一个弱智的问题
急问。。。urgent...在线等。。。unix中有没有类似于dos里面 tree 的命令?
有关Unix shell script的问题[转载] 问个Unix命令组合
a question about renaming.question about a unix command
help on unix问一个新手的问题
相关话题的讨论汇总
话题: rename话题: jpg话题: img话题: 总结话题: several