11-19-2001
n/a,
0
I posted this before as an example
ENVIRON=`pwd`
find ${ENVIRON} -name "*.ps" -user $user | while read psfile
do
pdffile=`echo $psfile | sed s/.ps$//g`
if [ -f ${pdffile}*.pdf ] ; then
gzip -f ${pdffile}*.pdf
fi
done
or you can try it like this:
cat datafile | while read line
do
process $line
done
where process is the command you wish to run... or a subroutine or whatever.
I hope this helps