逐一目錄執行指令 - Linux
By Eden
at 2010-01-18T23:36
at 2010-01-18T23:36
Table of Contents
請問大家,如何把某一目錄下的全部子目錄內的全部檔案個別逐一壓縮。
我目前的shell script只會處理單一目錄下的全部檔案,我對shell script
只是個門外漢,請問大家這樣的功能的script該怎麼寫?
我用的script是
for a in *
do
gzip "$a"
done
先謝過。
--
我目前的shell script只會處理單一目錄下的全部檔案,我對shell script
只是個門外漢,請問大家這樣的功能的script該怎麼寫?
我用的script是
for a in *
do
gzip "$a"
done
先謝過。
--
Tags:
Linux
All Comments
By Hedda
at 2010-01-22T12:17
at 2010-01-22T12:17
Related Posts
請教Anjuta的問題
By Anthony
at 2010-01-17T23:52
at 2010-01-17T23:52
solaris外接硬碟盒
By Christine
at 2010-01-17T23:40
at 2010-01-17T23:40
gVim 在 Windows 環境下熱鍵設定問題
By Dorothy
at 2010-01-17T19:07
at 2010-01-17T19:07
gVim 在 Windows 環境下熱鍵設定問題
By Elma
at 2010-01-17T17:55
at 2010-01-17T17:55
在新增使用者user時,同時新建/home/www/user/目錄
By Una
at 2010-01-17T17:31
at 2010-01-17T17:31