批次重新命名*.png to *2.png - Linux

By Hedy
at 2013-09-09T12:40
at 2013-09-09T12:40
Table of Contents
如題
我想要重新命名資料夾的所有檔案
*.png 重新命名成 *2.png
請問該command要怎麼下呢?
我只會加在檔名最後而已
ex:
for i in $(ls); mv $i $i\2; done
結果會變成*2.png
謝謝
--
我想要重新命名資料夾的所有檔案
*.png 重新命名成 *2.png
請問該command要怎麼下呢?
我只會加在檔名最後而已
ex:
for i in $(ls); mv $i $i\2; done
結果會變成*2.png
謝謝
--
Tags:
Linux
All Comments

By Lily
at 2013-09-13T11:02
at 2013-09-13T11:02

By Donna
at 2013-09-17T16:41
at 2013-09-17T16:41

By Tristan Cohan
at 2013-09-19T11:28
at 2013-09-19T11:28

By Ingrid
at 2013-09-21T18:36
at 2013-09-21T18:36

By Hedy
at 2013-09-23T00:56
at 2013-09-23T00:56

By Carol
at 2013-09-25T01:12
at 2013-09-25T01:12

By Mia
at 2013-09-29T01:31
at 2013-09-29T01:31

By Olivia
at 2013-10-02T23:48
at 2013-10-02T23:48

By Faithe
at 2013-10-03T01:40
at 2013-10-03T01:40

By Jack
at 2013-10-04T23:29
at 2013-10-04T23:29

By Edith
at 2013-10-06T22:55
at 2013-10-06T22:55
Related Posts
請問一下關於nginx gzip模組

By Delia
at 2013-09-09T00:01
at 2013-09-09T00:01
NIS設定問題

By Zora
at 2013-09-08T23:50
at 2013-09-08T23:50
centos 6.4是否能加上ipx模組?

By Anonymous
at 2013-09-08T03:20
at 2013-09-08T03:20
64-bit Mint 15 Cinnamon 無法關機

By Caroline
at 2013-09-08T01:59
at 2013-09-08T01:59
請問有辦法讓USB自動掛成網芳磁碟嗎?

By Heather
at 2013-09-07T20:31
at 2013-09-07T20:31