1#!/bin/sh 2 3for i in ./*.xml; do 4 echo -n "Processing $i... " 5 python ./gen_sort_tags.py $i > $i.tmp 6 mv $i.tmp $i 7 echo "done." 8done 9