summaryrefslogtreecommitdiff
path: root/nocompile/bin/rfc
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-04-21 13:41:40 -0500
committerepochqwert <epoch@hacking.allowed.org>2015-04-21 13:41:40 -0500
commit318b3220d191011bb9132efd4dbd5e6fb467b4e7 (patch)
tree1b0e7a29d15f79743c8559652432658423046a38 /nocompile/bin/rfc
parent4bdfc44f4681ef322378e614a409d5acc4d6586c (diff)
downloadmisc-318b3220d191011bb9132efd4dbd5e6fb467b4e7.tar.gz
misc-318b3220d191011bb9132efd4dbd5e6fb467b4e7.zip
made dcchelper a script instead of a c program.
ipdist which gives shortest distance based on whob's output of lat and lon nc.* are minmal versions of a netcat like program written in Perl. rfc is a script for downloading and viewing RFCs tpb.sh is for pulling magnet links from tpb search results. cuturl got an upgrade to better handle scheme:?query_string type URLs. (URN? URI? fuck if I know.)
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"