摘自man rename

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.

注:记得07年跟小田刚学linux,楞是没弄懂这个命令怎么用的,特记下

Advertisements