#!/bin/bash for i in `seq -f "%02g" 1 $1`; do echo "id3tool -c$i `ls -Q --quoting-style=shell-always *$i*`" | sh done