Next Bash Problem

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Nathan England
日付:  
To: plug-discuss
題目: Next Bash Problem

Okay, I've got it copying files...
But using the same method, is there a way to compress the files on the fly?
I need it to append each file to a tar archive, which is simple, but when I
introduce the compression, it doesn't work.

find . | tee output
while read file ; do
??? compress tar command ???
done < output

How would I do this?

just doing:
tar -rf "$file" $TMP/backup/stuff.tar

works great. But if I use a gz or bz2 file it just errors. Is this even
possible?

I can get it to work with .zip, but I'd prefer bz2.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss