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

⟦7bdd257ae⟧ TextFile

    Length: 843 (0x34b)
    Types: TextFile
    Names: »awk.or2rfc«

Derivation

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

TextFile

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

AWK=/usr/bin/awk

FILE=$1

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




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



$AWK <$FILE '
BEGIN   {
                FS ="#"
        }

/^#.*/  {
                printf("#%s%s\n", $1, $2)
                continue
        }
        {
                ok = index ($2, ".")
                if ( ok ) {
                        printf("%s:%s\n", $1, $2)
                        continue
                }
        }
END     {}
'