Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # 2016, gmb
- endday="1978-06-19"
- currd=`date +"%Y-%m-%d"`
- curry=`date +"%Y" -d "$currd"`
- while [ "$currd" != "$endday" ] ;
- do
- mkdir $curry -p
- wget -P "./$curry" -nc "https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/$curry/$currd.gif"
- currd=`date +"%Y-%m-%d" -d "$currd - 1 day"`
- curry=`date +"%Y" -d "$currd"`
- done
Advertisement
Add Comment
Please, Sign In to add comment