#! /bin/sh # # Last change: Mihai Dima 2001 # if [ $# -lt 2 ] then echo " " echo " ***** AVG ***** " echo " " echo " The program calculates the average field (file2)" echo " over all record in the input file (file1)" echo " " echo " Syntax: avg " echo " " exit 0 else echo " " echo " ***** AVG ***** " echo " " echo "file1="$1 echo "file2="$2 cp $1 fort.1 fi cat > avg.f <