#!/bin/bash mkdir ../20240825a l=$(ls *.jpg) for s in $l do convert -resize 20% $s ../20240825a/$s done