Originally posted by mfhsieh at 2005-2-6 09:35 PM:
用 cygwin (或任何 unix like 的環境)
1. 多個檔案壓縮成個別的壓縮檔
find . -type f -exec tar zcvf {}.tgz {} \;
2. 多個資料夾壓縮成個別的壓縮檔
find . -type d -maxdepth 1 ! -name . -exec tar zcvf {}.tgz {} \;
其實在 windows 下裝 cygwin,還蠻有用的。
不用 tar 的話,找 command 版的 pkzip/pkunzip 也可以。
Originally posted by mfhsieh at 2005-2-6 09:54 PM:
我常處理上萬個檔案,分散在不同的目錄。![]()
只要命名略有規則,用 find 大概都可以搞定。
--
(不過這牽扯到習慣問題,各有偏好就是了)
Originally posted by 小酒蟲 at 2005-2-6 10:15 PM:
Total Commander 也算半「圖型」吧?
Originally posted by 小酒蟲 at 2005-2-6 11:28 PM:
不然就寫個批次檔之類的吧?
歡迎光臨 PALMisLIFE 討論區 (http://f.pil.tw/) | Powered by Discuz! X2.5 |