Skip to content

Instantly share code, notes, and snippets.

@gsf
Created July 7, 2015 22:06
Show Gist options
  • Save gsf/510dd861f144b3aa28ac to your computer and use it in GitHub Desktop.
Save gsf/510dd861f144b3aa28ac to your computer and use it in GitHub Desktop.
while read url; do
bn="`basename $url`"
echo Uploading $bn ...
curl "$url" > tmp.pdf
aws s3 cp tmp.pdf "s3://phila-business/$bn"
done < ec2-PDFs.txt
@gsf
Copy link
Author

gsf commented Jul 7, 2015

First created that txt file with:

$ cut -d, -f1 BSP\ redirects\ -\ Sheet1.csv > ec2-PDFs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment