Here is another script to evaluate please give your advice to which monitoring script is more effecient?
filename=/tmp/bigtimeA$$X
sortfile=/tmp/bigtimeB$$X
filename=/tmp/bigtimeA$$X
# Remove work files when shell program exists, or if the user logs out,
# presses CTRL-C, or does a kill
trap...