#
# shell script to convert all filnames in a directory to uppercase
# and run appx -i=<filename> prior to import into APPX.
#
for file in *
do
	echo $file >fnamelow
	tr [a-z] [A-Z] <fnamelow >fnamecap
	LOWER=`<fnamelow`
	UPPER=`<fnamecap`
	echo $LOWER $UPPER
	mv $LOWER $UPPER
	appx -i=$UPPER
done
rm fnamelow fnamecap
chmod 777 *
chown appx *
