#!/bin/sh
# /usr/scripts/absta_pr
#
# Shell script: absta_pr
#
# Author: Kevin FitzGerrell
#
# Uses file {station}.blocks created by abx and calls awk script
# STATION.INFO to report block information on AB station. Prints report.
#
STATION=$1
cd /usr/scripts
cat /usr/scripts/newline > /usr/scripts/t1.tmp
sed 's/^END/e/;$d' /usr/scripts/${STATION}.blocks >> /usr/scripts/t1.tmp
nawk 'BEGIN {FS = "\n"; RS = "e"} $3 !~ /(STA$)|(ECB39$)/ {print $2,$3,$5,$6}' t1.tmp >t2.tmp
echo "Summary of block and period info for station: " $STATION > absta.rpt
echo "as of: " `ls -l /usr/scripts/${STATION}.blocks | awk '{print $6, $7, $8}'` >> absta.rpt
echo "" >> absta.rpt
nawk '{ print $3, $6, $9, $12 }' t2.tmp | awk -f /usr/scripts/STATION.INFO >> absta.rpt
lp -d LP51 absta.rpt
rm t1.tmp
rm t2.tmp
Text file Source (historic): geocities.com/fitzgerrell/dcs_stuff/raw_scripts
geocities.com/fitzgerrell/dcs_stuffgeocities.com/fitzgerrell
(to report bad content: archivehelp @ gmail)
|
|
|
|
|