/
hubbitus
/
shell.scripts
Обзор
Документация
Войти
/
hubbitus
/
shell.scripts
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
imgs.batch_decrease
10 строк
399 B
Pavel Alexeev
Recommit files after recovery Subversion repository from crash
29 ноя 2010, 02:14
29 ноя 2010, 02:14
7d907c2
Код
Авторство
О чём код?
#!/bin/bash : ${1?"Wrong arguments: `basename $0` DIR_to_process WIDTHxHEIGHT"} : ${2?"Wrong arguments: `basename $0` DIR_to_process WIDTHxHEIGHT"} find "$1" -iname '*.jpg' -or -iname '*.bmp' -or -iname '*.gif' -or -iname '*.png' | \ while read file; do echo "Process file: $file : $( identify -format "%w*%h (size %b)" "$file" )" convert -adaptive-resize "$2>" "$file" - | sponge "$file" done