rename批量改名

这个命令很好用,用来批量更改文件名用的,如

rename ‘s/\.tex$/\.txt’ *.tex

可以实现将当前目录下所有的tex文件改成txt后辍,方便在我的手机上用txt阅读器查看了^^

Advertisements
此条目发表在未分类分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s