可能是linux专有的吧
所在版块:技术の宅 发贴时间:2005-01-06 15:15

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
# rpm -qf `which rename`
util-linux-2.12a-16

# man rename
RENAME(1) Linux Programmer's Manual RENAME(1)

NAME
rename - Rename files

SYNOPSIS
rename from to file...

DESCRIPTION
rename will rename the specified files by replacing the first occur-
rence of from in their name by to.

For example, given the files foo1, ..., foo9, foo10, ..., foo278, the
commands

rename foo foo0 foo?
rename foo foo0 foo??

will turn them into foo001, ..., foo009, foo010, ..., foo278.

And
rename .htm .html *.htm
will fix the extension of your html files.

SEE ALSO
mv(1)

1 January 2000 RENAME(1)
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
Shell programming problem (Borne Shell or Korn Shell) 香陵居士   (82 bytes , 554reads )
记得你好象曾经提起过有一个命令可以查当前是什么系统 JiuJie   (57 bytes , 194reads )
uname -a? 吴永铮   (0 bytes , 166reads )
谢谢 JiuJie   (0 bytes , 226reads )
看看这个可以么?没在公司,不能测试 JiuJie   (216 bytes , 241reads )
tested in Solaris 2.5 successfully. JiuJie   (175 bytes , 246reads )
not the most efficient one, since i am new to perl. but enough for your work MrDJay   (306 bytes , 235reads )
I mean shell script... :P 香陵居士   (26 bytes , 173reads )
.........u... MrDJay   (0 bytes , 147reads )
mv *.abc *.xyz 逃课专家   (0 bytes , 146reads )
please do not guess... 香陵居士   (93 bytes , 185reads )
for f in *.abc 逃课专家   (32 bytes , 166reads )
... 香陵居士   (0 bytes , 161reads )
man rename 吴永铮   (22 bytes , 185reads )
rename是函数吧,她要的应该是shell JiuJie   (0 bytes , 142reads )
看清楚,是RENAME(1),不是RENAME(2)。 吴永铮   (0 bytes , 135reads )
Can not find such command 香陵居士   (226 bytes , 188reads )
可能是linux专有的吧 吴永铮   (784 bytes , 249reads )
应该是的 SmellsLikeTeenSpirit   (0 bytes , 181reads )