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.

Revisions

  1. justinhartman created this gist Mar 6, 2023.
    8 changes: 8 additions & 0 deletions lz4-aliases.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Make an LZ4 archive
    lz4make () {
    tar -c - "${1}" | lz4 - "${1}.tar.lz4"
    }
    # Extract an LZ4 archive
    lz4extract () {
    pv "${1}" | lz4 -dc - | tar -x
    }