Michelle Konzack schreef:
Why not use: cat $FILE |gzip >$FILE.gz
Because gzip has a "-c --stdout --to-stdout" option.
gzip -c "$FILE" > "$FILE.gz"
If you want to "cat" several members:
<quote source="man gzip">
In case of damage to one member of a .gz file, other members can still
be recovered (if the damaged member is removed). However, you can get
better compression by compressing all members at once:
cat file1 file2 | gzip > foo.gz
compresses better than
gzip -c file1 file2 > foo.gz
</quote>
--
Groet, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail