aboutsummaryrefslogtreecommitdiff
path: root/bin/rfcf.sh
blob: 36b1a4c42e45918251b2c092cc32fc8b843d01fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Check arguments
if [ "$#" -ne 1 ] ; then
    printf >&2 'rfcf: Need one RFC number\n'
    exit 2
fi

# Argument is RFC number
rn=$1

# Retrieve the RFC with curl(1)
curl -fsSL https://tools.ietf.org/rfc/rfc"$rn".txt