#!/bin/sh TEMPFILE=/tmp/.temp-sort-file.$$ sort $1 > $TEMPFILE cat $TEMPFILE > $1 /bin/rm -f ${TEMPFILE}