chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdeb575
)
get-rfc: Always download to $HOME/misc/rfc rather than the current
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Thu, 13 Nov 2003 14:33:15 +0000
(14:33 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Thu, 13 Nov 2003 14:33:15 +0000
(14:33 +0000)
directory. Automatically start a pager on the downloaded document.
get-rfc
patch
|
blob
|
history
diff --git
a/get-rfc
b/get-rfc
index 03efd035f017e9ef076b77588233c877b79d8e2e..aff8b7a648ca5856a6f4d169f23cb1c0a01a844b 100755
(executable)
--- 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"