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