3 ms·
This works on MacOS without wget: curl $(curl -s https://www.star.nesdis.noaa.gov/GOES/fulldisk.php?sat=G16 | grep -o -e 'https://cdn.star.nesdis.noaa.gov/
by bschwindHN 7y ago
This works on MacOS without wget:
curl $(curl -s https://www.star.nesdis.noaa.gov/GOES/fulldisk.php?sat=G16 | grep -o -e 'https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/[0-9]*_GOES16-ABI-FD-GEOCOLOR-1808x1808.jpg' | head -1) -o earth.jpg && open earth.jpg
- deleted 7y ago[deleted]
- surendhar 7y agohttps://gist.github.com/surendharreddy/4264bc1f971680c355efa728b5e35a09 https://gist.github.com/surendharreddy/4264bc1f971680c355efa... Fixed it
- lordgrenville 7y agoDo you know any reason this wouldn't work with zsh? I'm getting zsh: no matches found: https://www.star.nesdis.noaa.gov/GOES/fulldisk.php?sat=G16
- bschwindHN 7y agoSorry, I just changed the original until it worked in MacOS in the default bash terminal. I kinda hate shell scripting to be honest.
- wrboyce 7y agoZsh is trying to expand the glob, either quote it or prepend the command with “noglob”.
- lordgrenville 7y agoAh, that was it. Much appreciated.