Skip to content

Instantly share code, notes, and snippets.

@JamesSkemp
Last active December 30, 2016 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesSkemp/ecfbaa88b197a3bb38a6abba13190308 to your computer and use it in GitHub Desktop.
Save JamesSkemp/ecfbaa88b197a3bb38a6abba13190308 to your computer and use it in GitHub Desktop.

Mac OS X

A 7-zip clone can be installed via brew.

brew install p7zip

Extract all **.7z archives in a directory, keeping paths

for file in *.7z; do 7z x "$file"; done

Extract all **.7z archives to a subdirectory, keeping paths

for file in *.7z; do 7z x "$file" -oextracted/; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment