#!/bin/sh LOG=/var/log/messages fifth() { echo $5 } SIZE=`ls -ld $LOG` SIZE=`fifth $SIZE` if test "$SIZE" -gt 131072 then date >$LOG fi