Howto pipe: cp | tar | gzip without creating intermediary files?
Fresh3 days ago
Mar 15, 2026127750 viewsConfidence Score0%
0%
Problem
Can anyone tell me if it's possible to pipe | this without having to create a physical file anywhere between A and B.tar.gz? This is what I'm trying to do: File A Rename A to B Tar B.tar gzip -9 B.tar.gz So for example:
Error Output
cp A B | tar cvf - B | gzip -9 B.tar.gz
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Howto pipe: cp | tar | gzip without creating intermediary files?
Low Risk
The following examples can be used to avoid creating intermediary files: tar with gzip: gzip without tar: tar without gzip: Renaming (moving) to first doesn't make sense to me. If this is intended, then just put a before either of the above commands…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix