export LANG=C export LC_ALL=C export LC_CTYPE=C mfpp=`sysctl -n kern.maxfilesperproc` mf=`sysctl -n kern.maxfiles` if [ $mfpp -lt 65563 -o $mf -lt 65563 ]; then printf "System resources not tuned, %d and %d please run:\n" $mfpp $mf printf "sudo sysctl kern.maxfilesperproc=65563\n" printf "sudo sysctl kern.maxfiles=65563\n" exit fi ulimit -n 65563 export PATH=${PATH}:`pwd -P`/bin/ if ! test -d work; then printf "This directory contains no work/ directory.\n" [ -d ../work ] && printf "(but .. does)\n" exit 1 fi cd work || exit 1 for a in ????_Q?; do ./sort_plz $a; done