DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T a

⟦6383f3e0b⟧ TextFile

    Length: 1209 (0x4b9)
    Types: TextFile
    Names: »awk.rfc2or«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z« 
        └─⟦e5a54fb17⟧ 
            └─⟦this⟧ »pp-5.0/Tools/tables/pp-rfc987/awk.rfc2or« 

TextFile

#!/bin/sh
#
#
#       awk.rfc2or - is an awk program that reformats the
#       PP tables into the RFC-987 International ones.
#
#
#       syntax :    awk.rfc2or  { first | multi } input-table
#
######################################################################


AWK=/usr/bin/awk

FILEIN=$1
FILEOUT=rfc2or.temp

if [ -z "$FILEIN" ]
then
        echo " "
        echo "Usage:   awk.rfc2or input-table"
        echo " "
        exit 1
fi


grep ":C" $FILEIN > $FILEOUT
grep ":ADMD" $FILEIN >> $FILEOUT
grep ":PRMD" $FILEIN >> $FILEOUT
grep ":O" $FILEIN | sort -u >> $FILEOUT



#---------------------- Start of the awk routines  --------------------------#


$AWK < $FILEOUT '
BEGIN   {
		print("#")
		print("#=============================================================================")
		print("#======================================================= United Kingdom ======")
		print("#        Last update: 90.02.01")
		print("#        Responsible: John Seymour <John.Seymour@ean-relay.ac.uk>")
		print("#")
		print("#    Beware of the quoted dots in this table!")
		print("#")
		FS =":"
        }
/^#.*/  {
		continue
        }
        {
		printf("%s#%s#\n", $1, $2)
		continue
        }
END     {}
'