Last active
December 14, 2015 04:39
-
-
Save mebius01/5030198 to your computer and use it in GitHub Desktop.
wg - скрипт написан для скачивания картинок с этого http://2photo.ru/ru/ сайт
This file contains hidden or 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/bash | |
echo "Введите имя директории:" | |
read NAME | |
echo "Введите адрес ссылки:" | |
read URL | |
echo "Удалить файлы, размер которых меньше:" | |
read RAZ | |
echo "Желаемое время работы скрипта:" | |
read TIME | |
mkdir "$NAME" | |
(cd "$PWD"/"$NAME" && wget -b -H -r -A jpg -nd "$URL") & sleep $TIME && pkill wget | |
(cd "$PWD"/"$NAME" && find ./ -type f -size -"$RAZ" -exec rm -f '{}' \;) | |
(cd "$PWD"/"$NAME" && rm *html && rm *txt && rm *txt*) | |
echo Все Ок | |
#exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment