Change this:
Code:
PREVIEW1080p=`echo $MOVIE | $AWK -F'\t' '{ print $4 }' |sed 's/h640w\.mov$/h1080p.mov/g'`
to:
Code:
PREVIEW1080p=${PREVIEW%%h640w.mov}h1080p.mov

That saves about four new processes.

I think you can figure out the syntax for the other two.

Oh, and you don't need to save $? to an intermediate variable.


Edited by wfaulk (16/01/2009 16:20)
_________________________
Bitt Faulk