# Netlog script version 1.0.0 
# Created by Sherrod Munday  10-20-98
# 
# -n option on sed supresses default output.  
#   This is needed for using hold space and printing (see netlog.sed for details)
# 
# First file listed for sed and awk (after -f option) gives file location for scripts to use to process data.
#  Second file listed in sed command is the actual log file itself that will be processed.
# 
# Final output of last awk command is redirected to a file in /tmp directory.
#  Currently, this is called whatever the current date is (by using formatted date command).
#  You could instead always write this to the same file in a static location.
#   Or, you could remove the redirect to quickly survey the results on standard output.
# 
sed -n -f /etc/diald/netlog.sed /var/log/diald.log | awk -f /etc/diald/netlog.awk | awk -f /etc/diald/netlog2.awk > /tmp/`date +%m%d%y.log`
