Skip to content

Instantly share code, notes, and snippets.

@bdwilson
Created May 24, 2024 00:17
Show Gist options
  • Save bdwilson/7fc75b4bd8fd22c7fbc0ed7727405799 to your computer and use it in GitHub Desktop.
Save bdwilson/7fc75b4bd8fd22c7fbc0ed7727405799 to your computer and use it in GitHub Desktop.
Quickly save off Shopify Inventory Images from your products.csv
#!/bin/sh
# copy all URL's to urls.txt file, one per line, empty lines are ok
for i in `cat urls.txt | grep http`; do
SAVEAS=`basename "$i" | awk -F\? '{print $1}'`
if [ ! -f ${SAVEAS} ]; then
wget $i -O ${SAVEAS}
echo Saving $SAVEAS
else
echo Skipping $SAVEAS
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment