Mercurial > repos > other > usr-local-bin
view find-small-album-art @ 22:faa17dcc2c95
Make a compromise when backing up to external HDD
Backups are getting bigger and space is getting short!
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 09 Jun 2019 15:52:35 +0100 |
parents | e85e3470a41e |
children |
line wrap: on
line source
#! /bin/sh identify ~/.cache/media-art/*.jp{,e}g 2>/dev/null | while read file; do size=$(echo $file | awk '{print $3}'); size1=$(echo $size | cut -f1 -dx); size2=$(echo $size | cut -f2 -dx); if [ $size1 -lt 500 -a $size2 -lt 500 ]; then echo $file | awk '{print $1 " " $3 }' | sed 's/\[[0-9]\+\]//'; fi; done