Created
February 5, 2016 12:01
-
-
Save mapkyca/dc07d66772cdd5a3b6d0 to your computer and use it in GitHub Desktop.
Get a list of unique downloads from an awstats download list
This file contains hidden or 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
curl http://localhost/~marcus/awstats/domain/month/awstats.localhost.downloads.html | grep 'http://your.domain/you/are/interested/in' | sed -ne 's/.*\(http[^"]*\).*/\1/p' >> /tmp/files.csv | |
cat /tmp/files.csv | sort | uniq > /tmp/sorted.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To download these files:
xargs -n 1 curl -s -J -O < sorted.csv