Created
March 6, 2023 16:14
-
-
Save justinhartman/9a05c151977419023097af17cc5783c7 to your computer and use it in GitHub Desktop.
Aliases for creating and extracting LZ4 archives
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
# Make an LZ4 archive | |
lz4make () { | |
tar -c - "${1}" | lz4 - "${1}.tar.lz4" | |
} | |
# Extract an LZ4 archive | |
lz4extract () { | |
pv "${1}" | lz4 -dc - | tar -x | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment