#!/bin/bash for i in `seq 1 6`; do echo $i; convert -thumbnail x300 -background white -alpha remove golem_g"$i".pdf[0] golem_g"$i"_thb.png; done ll