aboutsummaryrefslogblamecommitdiff
path: root/bin/rfct
blob: dff7a4e2531f850b2096349ad04eb5865e4d7c23 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                       
               


                                          
#!/usr/bin/awk -f

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

# Skip any block without at least one alphanumeric char
!/[[:alnum:]]/ { next }

# Skip any block with a page break marker in it
/\x0c/ { next }

# Print the block followed by two newlines
{ printf "%s\n\n", $0 }