#!/bin/bash for i in *.dot; do echo "Creating $i.png" dot -Tpng $i > $i.png done