#!/bin/sh # /usr/scripts/absta # # Shell script: absta # # Author: Kevin FitzGerrell # # Uses file {station}.blocks created by abx and calls awk script # STATION.INFO to report block information on AB station. # 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 echo "as of: " `ls -l /usr/scripts/${STATION}.blocks | awk '{print $6, $7, $8}'` echo "" nawk '{ print $3, $6, $9, $12 }' t2.tmp | awk -f /usr/scripts/STATION.INFO rm t1.tmp rm t2.tmp