aboutsummaryrefslogtreecommitdiff
path: root/bin/rfcr
blob: 03de898d286b3ae83fe0ce93a0d42819ec20f2b1 (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(1df)
rfcf "$rn" |

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

# Either spit it directly or through a pager
pit