annotate find-small-album-art @ 23:489ba6ea3c35
Add some more directories to back up
Also reformats the command for readability
author |
IBBoard <dev@ibboard.co.uk> |
date |
Sun, 09 Jun 2019 15:53:48 +0100 |
parents |
e85e3470a41e |
children |
|
rev |
line source |
0
|
1 #! /bin/sh
|
|
2
|
|
3 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
|
|
4 $size2
|
|
5 -lt 500 ];
|
|
6 then echo $file | awk '{print $1 " " $3 }' | sed 's/\[[0-9]\+\]//'; fi; done
|