X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=blobdiff_plain;f=get-rfc;h=aff8b7a648ca5856a6f4d169f23cb1c0a01a844b;hb=66785e5dcef209c1b0890c169a11dc0a9e241728;hp=03efd035f017e9ef076b77588233c877b79d8e2e;hpb=b0d0617438b3e17a861ddfa74b89e3c3d148f996;p=bin.git diff --git a/get-rfc b/get-rfc index 03efd03..aff8b7a 100755 --- a/get-rfc +++ b/get-rfc @@ -1,3 +1,5 @@ #! /bin/sh # Depends: wget -wget "http://www.ietf.org/rfc/rfc$1.txt" +cd "$HOME/misc/rfc" +[ -f "rfc$1.txt" ] || wget "http://www.ietf.org/rfc/rfc$1.txt" +${PAGER:-pager} "rfc$1.txt"