aboutsummaryrefslogblamecommitdiff
path: root/bin/rfct.awk
blob: 256841a780c0e68fbd3feb1abc2c524c0ebfeed7 (plain) (tree)
1
2
3
4
5
6
7
8
                                                   

                         



                
 







                                                          
# Format an RFC in text format for terminal reading

# A record is a paragraph
BEGIN {
    RS = ""
    ORS = "\n\n"
}

{
    # Strip out control characters, except tab and newline
    gsub(/[^[:print:]\n\t]/, "")

    # If there's anything left, print it
    if (length)
        print
}