当前位置: 技术问答>linux和unix
redhat中有没有一次改一批文件后缀名的命令?
来源: 互联网 发布时间:2014-11-05
本文导语: 比如mv a.txt a.dat 我有一批这样的文件想一次就改过来能不能实现? | mv *.txt *.dat难道不行吗? | 你自己仔细看一下mv命令的使用说明,就会明白它会完成你要的一切操作了 ...
比如mv a.txt a.dat
我有一批这样的文件想一次就改过来能不能实现?
我有一批这样的文件想一次就改过来能不能实现?
|
mv *.txt *.dat难道不行吗?
|
你自己仔细看一下mv命令的使用说明,就会明白它会完成你要的一切操作了
|
呵呵,其实自己写一个修改的程序也不是很难呀
为什么不自己写呢
为什么不自己写呢
|
#man mv
...
Moving file1 to new-file is used to rename a file within a directory or to relocate a file within a file system or across different file systems.When the dstination is a directory,one or more files are moved into that directory.If two or more files are moved,the destination must be a directory.When moving a single file to a new file,if new-file exists,its contents are destroyed.
...
...
Moving file1 to new-file is used to rename a file within a directory or to relocate a file within a file system or across different file systems.When the dstination is a directory,one or more files are moved into that directory.If two or more files are moved,the destination must be a directory.When moving a single file to a new file,if new-file exists,its contents are destroyed.
...