Linux如何一次copy成多個檔案 - LinuxKyle · 2011-11-23Table of ContentsPostCommentsRelated Posts 例如我有檔案 test-01.com 我想copy test-01.com 成為 test-02.com test-03.com ... test-99.com 我要如何一次完成呢? 謝謝 -- LinuxAll CommentsRosalind2011-11-25寫程式就可以搞定,應該也不需要多少行。Olive2011-11-25簡單的for迴圈,後面的檔名數字用變數。Zenobia2011-11-28for x in `seq 10 99`; do cp test-01.com test-${x}.com;done;Gilbert2011-12-02要有01~09應該是seq -w 1 99喔Ursula2011-12-03哦哦,又學到了Zenobia2011-12-03seq -w 2 99|xargs -i cp test-01.com test-{}.comQueena2011-12-04比較新版的bash可以用{01..99}Related Posts有人 Ubuntu & Opensuse 都用過嗎?Fedora 升級Debian testing moves to gnome3有人 Ubuntu & Opensuse 都用過嗎?Red Hat Enterprise Linux ES V4.8 套件
All Comments