aboutsummaryrefslogtreecommitdiff
path: root/bin/rfcr
blob: 74488c8c37af13a713be055e9b22087fe0e42ad3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Figure out RFC number
self=rfcr
if ! [ "$1" ] ; then
    printf >&2 '%s: Need an RFC number\n' "$self"
    exit 2
fi
rn=$1

# Retrieve the RFC with rfcf(1)
rfcf "$rn" |

# Pipe it through rfct(1) to format it as text
rfct |

# Either spit it directly or through a pager
pit