#!/bin/sh echo ' doll 8 fish 8 lotte 8 poku 8 sw1 8 sw2 8 sw3 8 sw4 8 ' | while read -r dir colors; do test -n "$dir" || continue echo echo "$dir" find "$dir/jpgs" -name '*.jpg' | sort | ./imgs2png.sh 624 "$colors" "$dir/$colors" find "$dir/$colors" -name '*.png' | sort | ./imgs2gif.sh "$dir.gif" done