Skip to content

Instantly share code, notes, and snippets.

@viking
Created September 30, 2016 20:24
Show Gist options
  • Save viking/f9b8a8730f4199b28b1c1d9de050d36a to your computer and use it in GitHub Desktop.
Save viking/f9b8a8730f4199b28b1c1d9de050d36a to your computer and use it in GitHub Desktop.
Download and extract tracker files from s3m competitions
#!/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