aboutsummaryrefslogblamecommitdiff
path: root/bin/rfcf
blob: 633eaace9639a2c742da07e251611d6dc47eaeb7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

         







                                                 
                               
                                                  
#!/bin/sh

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

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