#!/bin/sh
# /usr/scripts/table
#
# Shell script: table
#
# Author: Kevin FitzGerrell
#
# uses file STATION.blocks
# and builds file STATION.table with period and phase info.
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,$4}' t1.tmp >t2.tmp
nawk '{ print $3, $6, $9, $12, $15, $16, $17, $18, $19, $20, $21, $22 }' t2.tmp > /usr/scripts/${STATION}.table
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)
|
|
|
|
|