#!/bin/sh if [ x$1 == x ] then echo "Usage: $0 input-dir" exit 1 fi dirname=$1 outname=$1.dat if [ -d $dirname ] then rm -f $outname for i in $dirname/*.po do echo "Processing $i" msgexec -i $i 0 >> $outname done else echo "$d is not a directory" exit 1 fi