Created
September 16, 2011 04:16
-
-
Save unakatsuo/1221187 to your computer and use it in GitHub Desktop.
Onliner: keep sparse section after decompressing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When you extract the compressed file which might be sparse originally, the generated file will be non-sparse. | |
# Here is the oneliner that allows to keep sparse without creating temporary file. | |
zcat sparse.raw.gz | cp --sparse=always /dev/stdin sparse.raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment