chiark / gitweb /
sort files numerically
[bin.git] / get-rfc
diff --git a/get-rfc b/get-rfc
old mode 100644 (file)
new mode 100755 (executable)
index ca7c2aa..aff8b7a
--- a/get-rfc
+++ b/get-rfc
@@ -1,2 +1,5 @@
 #! /bin/sh
-wget --passive http://www.ietf.org/rfc/rfc$1.txt
+# Depends: wget
+cd "$HOME/misc/rfc"
+[ -f "rfc$1.txt" ] || wget "http://www.ietf.org/rfc/rfc$1.txt"
+${PAGER:-pager} "rfc$1.txt"