由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Is there any command which can mv multiple files
相关主题
How to use files with names like "-123.txt"?how to recover deleted files
what is the command to gunzip/tar a .tar.gz file再次急问: *.tgz 文件怎么解?
how to get rid of the ^M in files?双面打印
multiple file copyhelp on job control commands
HELP: How to get rid of unwanted characters in file namewait on line: simple question
A question about command timeHow to use the command history in SUN?
question about CVShow to built up a mailing list in unix?
How to reunite the files?solaris built-in firewall
相关话题的讨论汇总
话题: files话题: mv话题: command话题: dat话题: txt
进入Unix版参与讨论
1 (共1页)
w********i
发帖数: 5
1
like
xxx *.dat *.txt // try to mv all files with .dat to files with .txt.
if no built-in command, I have to write one for myself.
w*****n
发帖数: 94
2
for f in *.dat; do mv $f `echo $f|sed s/dat$/txt/`; done

【在 w********i 的大作中提到】
: like
: xxx *.dat *.txt // try to mv all files with .dat to files with .txt.
: if no built-in command, I have to write one for myself.

1 (共1页)
进入Unix版参与讨论
相关主题
solaris built-in firewallHELP: How to get rid of unwanted characters in file name
multiple slashes don't hurtA question about command time
multiple network interfacequestion about CVS
Perl: conditionally match multiple linesHow to reunite the files?
How to use files with names like "-123.txt"?how to recover deleted files
what is the command to gunzip/tar a .tar.gz file再次急问: *.tgz 文件怎么解?
how to get rid of the ^M in files?双面打印
multiple file copyhelp on job control commands
相关话题的讨论汇总
话题: files话题: mv话题: command话题: dat话题: txt