Created
September 30, 2016 20:24
-
-
Save viking/f9b8a8730f4199b28b1c1d9de050d36a to your computer and use it in GitHub Desktop.
Download and extract tracker files from s3m competitions
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
#!/bin/bash | |
num=$1 | |
wget --content-disposition https://s3m.it/pack/$num | |
file=`ls -t | head -n 1` | |
dir=`echo "$file" | sed 's/\.7z$//'` | |
mkdir "$dir" | |
cd "$dir" | |
7z x "../$file" | |
cd - | |
rm "$file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment