From: Colin Watson Date: Thu, 13 Nov 2003 14:33:15 +0000 (+0000) Subject: get-rfc: Always download to $HOME/misc/rfc rather than the current X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=647f456833ea9f71933edd25af9e2bc175bbce68 get-rfc: Always download to $HOME/misc/rfc rather than the current directory. Automatically start a pager on the downloaded document. --- 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"