Skip to content

Instantly share code, notes, and snippets.

@justinhartman
Created March 6, 2023 16:14
Show Gist options
  • Save justinhartman/9a05c151977419023097af17cc5783c7 to your computer and use it in GitHub Desktop.
Save justinhartman/9a05c151977419023097af17cc5783c7 to your computer and use it in GitHub Desktop.
Aliases for creating and extracting LZ4 archives
# 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