Created
November 9, 2018 08:15
-
-
Save calindotgabriel/56db1097f3538dadec2a5dc8568e83bd to your computer and use it in GitHub Desktop.
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 | |
IMG_REGXP="<img" | |
HOME_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/home" | |
HOME_ANALYSIS_FILE="home_imgs.txt" | |
MEMBERSHIP_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/membership" | |
MEMBERSHIP_A_FILE="membership_imgs.txt" | |
ABOUT_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/about" | |
ABOUT_A_FILE="about_imgs.txt" | |
CELERY_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/imports/plugins/custom/pressed-theme/client/templates/pages/celery-challenge" | |
CELERY_A_FILE="celery_imgs.txt" | |
SHOP_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/altimgs/prerenders/shop" | |
SHOP_A_FILE="shop_imgs.txt" | |
CLEANSES_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/altimgs/prerenders/cleanses" | |
CLEANSES_A_FILE="cleanses_imgs.txt" | |
BUNDLES_PAGE_PATH="/Users/admin/Dev/pressed_site-develop/altimgs/prerenders/bundles" | |
BUNDLES_A_FILE="bundles_imgs.txt" | |
grep -rh $IMG_REGXP $HOME_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o 'src=.*>' | sed 's/\./http:\/\/pressedjuicery\.com/'> $HOME_ANALYSIS_FILE | |
echo "Written to $HOME_ANALYSIS_FILE" | |
grep -rh $IMG_REGXP $MEMBERSHIP_PAGE_PATH | sed 's/ //g' | grep -o 'src=.*>' | sed 's/\/\///' | sed 's/\/custom/http:\/\/pressedjuicery\.com\/custom/' > $MEMBERSHIP_A_FILE | |
echo "Written to $MEMBERSHIP_A_FILE" | |
grep -rh $IMG_REGXP $ABOUT_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o 'src=.*>' | sed 's/\./http:\/\/pressedjuicery\.com/' > $ABOUT_A_FILE | |
echo "Written to $ABOUT_A_FILE" | |
grep -rh $IMG_REGXP $CELERY_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o 'src=.*>' | sed 's/\./http:\/\/pressedjuicery\.com/'> $CELERY_A_FILE | |
echo "Written to $CELERY_A_FILE" | |
grep -rh $IMG_REGXP $SHOP_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o '<img.*>' | grep -o 'src=.*>' | sed 's/\/custom/http:\/\/pressedjuicery\.com\/custom/'> $SHOP_A_FILE | |
echo "Written to $SHOP_A_FILE" | |
grep -rh $IMG_REGXP $CLEANSES_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o '<img.*>' | grep -o 'src=.*>' | sed 's/\/custom/http:\/\/pressedjuicery\.com\/custom/' > $CLEANSES_A_FILE | |
echo "Written to $CLEANSES_A_FILE" | |
grep -rh $IMG_REGXP $BUNDLES_PAGE_PATH | sed 's/ //g' | sed 's/\/\///' | grep -o '<img.*>' | grep -o 'src=.*>' | sed 's/\/custom/http:\/\/pressedjuicery\.com\/custom/' > $BUNDLES_A_FILE | |
echo "Written to $BUNDLES_A_FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment