summaryrefslogtreecommitdiff
path: root/nocompile/bin/rfc
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin/rfc')
-rwxr-xr-xnocompile/bin/rfc8
1 files changed, 8 insertions, 0 deletions
diff --git a/nocompile/bin/rfc b/nocompile/bin/rfc
new file mode 100755
index 0000000..56440ae
--- /dev/null
+++ b/nocompile/bin/rfc
@@ -0,0 +1,8 @@
+#!/bin/sh
+RFCPATH=/anarchy/rfc
+if [ ! -f "${RFCPATH}/rfc$1.txt" ];then
+ echo "RFC file not found... downloading..."
+ wget http://www.ietf.org/rfc/rfc$1.txt -O "${RFCPATH}/rfc$1.txt"
+ echo "RFC has now been downloaded."
+fi
+less "${RFCPATH}/rfc$1.txt"