Created
May 24, 2024 00:17
-
-
Save bdwilson/7fc75b4bd8fd22c7fbc0ed7727405799 to your computer and use it in GitHub Desktop.
Quickly save off Shopify Inventory Images from your products.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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