ls -1tS | head -n 50 | grep -E '\.jpg$' | while read f; do f2="${f%.*}.comp.jpg"; convert -scale 1024x "$f" "$f2" && ls -al "$f" "$f2" && rm "$f"; done
