I have a ton of txt.gz files on a network I want to ungzip and put into a tgz. I have enough disk space for the all compressed files, but not uncompressed.
The way I see it in my head is
tar -czf output.tgz --daemon while read filename do wget ftp://server/path/$filename.gz gunzip $filename.gz tar --add-to-daemon ./$filename rm $filename done tar --close-daemon
Is there a way to do this?