#!/bin/sh for file in *.ui; do py_file=`echo $file | sed s/.ui/.py/` pyuic -x -o $py_file $file > /dev/null 2>&1 echo $py_file generated done