3 ms·
Tried do this on a mac. I had to replace gnu grep with perl: perl -wnle '/(.{0}https://assets.amuniversal.com.{0,33})/ and print $1' I had to replace wget w
by justjonathan 6y ago
Tried do this on a mac.
I had to replace gnu grep with perl:
perl -wnle '/(.{0}https://assets.amuniversal.com.{0,33})/ and print $1'
I had to replace wget with curl:
curl -s https://www.gocomics.com/calvinandhobbesespanol/$x -o $z-es;
Then I realized I need gnu date, which had to come as part of coreutils:
brew install coreutils
So date becomes gdate
for i in {1..1000}; do x=$(gdate +'%Y/%m/%d' -d "$i days ago");
z=$(gdate +'%Y-%m-%d' -d "$i days ago");
Hope I din't break other stuff with that.
Now it still doesn't work, but I'm giving up, hopefully I saved a little time for somebody...
- vfinn 6y agoAnd you have ImageMagick also installed?
- justjonathan 6y agoI do
- vfinn 6y agoWell, it should be pretty straightforward to first check whether the loop is working at all and then step-by-step echo the variables for example to see what's missing.