#! /bin/sh while : do if read line then set `echo $line` echo $5 $1 >> /tmp/t$$ else sort /tmp/t$$ rm /tmp/t$$ exit fi done