Skip to content

Instantly share code, notes, and snippets.

@williampsena
Created January 4, 2020 16:34
Show Gist options
  • Save williampsena/a077e65f0738c52c7503e8fcb98dabc2 to your computer and use it in GitHub Desktop.
Save williampsena/a077e65f0738c52c7503e8fcb98dabc2 to your computer and use it in GitHub Desktop.
#/bin/bash
SOURCE=$1
TARGET=$2
mkdir -p $TARGET
echo "Extracting 7z files from $SOURCE to $TARGET"
7z x "$SOURCE/*.7z" -o"$TARGET"
# how to use -> extract-7z-files.sh /tmp/source /tmp/target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment