Shell programming problem (Borne Shell or Korn Shell)
登录 | 论坛导航 -> 华新鲜事 -> 技术の宅 | 本帖共有 19 楼,当前显示第 7 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:吴永铮 (等级:8 - 融会贯通,发帖:2078) 发表:2005-01-06 15:15:34  7楼 
Can not find such commandsngclrt01 mengdi 167: man rename No manual entry for rename. sngclrt01 mengdi 168: man -k rename sngclrt01 mengdi 169: rename ksh: rename: not found sngclrt01 mengdi 170: sh sngclrt01 mengdi 171: rename sh: rename: not found
可能是linux专有的吧
# 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!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 19 楼,当前显示第 7 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码