vadviktor
6/2/2014 - 12:05 PM

getBlockLists.sh

#!/usr/bin/env sh

# Download lists, unpack and filter, write to gzipped file 
curl -s https://www.iblocklist.com/lists.php \
| grep -A 2 Bluetack \
| sed -n "s/.*value='\(http:.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#' \
| gzip - > bt_blocklist.gz