Xref: utzoo alt.sources:3919 comp.unix.admin:2258 Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbfsb!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: alt.sources,comp.unix.admin Subject: Re: How do I get RFC articles? Message-ID: <1991Jun19.005837.21993@cbfsb.att.com> Date: 19 Jun 91 00:58:37 GMT References: <1991Jun17.134449.18197@mlb.semi.harris.com> <1991Jun18.010117.22207@leland.Stanford.EDU> Sender: news@cbfsb.att.com Reply-To: Dan_Jacobson@ihlpz.ATT.COM Followup-To: alt.sources.d,comp.unix.admin Organization: AT&T-BL, Naperville IL, USA Lines: 50 In-Reply-To: alderson@Alderson.Stanford.EDU's message of 18 Jun 91 01: 01:17 GMT Originator: danj1@cbnewsf.cb.att.com here's a handy script: ftp=ftp #it might be called someting funny on your system -DJ #From: sahayman@iuvax.cs.indiana.edu (Steve Hayman) #Newsgroups: alt.sources #Subject: retrieve RFC's automatically from uunet #Date: 11 Apr 91 22:22:30 GMT #Organization: Computer Science, Indiana University # #I find this little script handy, it retrieves RFC's automatically #from uunet via anonymous ftp and sticks them on stdout. #So, instead of keeping your own little collection of RFCs #hidden away somewhere and forgetting what directory you #put them in, you can just use # #% rfc index | more #% rfc 1217 | lpr (A personal favourite. Get this one. It's funny.) #!/bin/sh # rfc NNN # retrieve rfc NNN from uunet, put it on stdout # assumes rfc's are in uunet:/rfc/rfcNNNN.Z # # Actually the uunet people would prefer it if you ftp'd things # from 'ftp.uu.net', so we retrieve things from that machine. # # uunet conveniently has files called "index" and "rfc-index" # in the /rfc directory, so this script will also let you # retrieve those. # # sahayman # 1991 04 10 PATH=/usr/local/bin:/usr/ucb:/bin:usr/bin export PATH # a little hack so that we can say "rfc index" or "rfc rfc-index" # as well as "rfc 822" case "$1" in "") echo "$0: Usage $0 [NNN] [index] [rfc-index]" 1>&2; exit 1 ;; [0123456789]*) file=rfc$1.Z ;; *) file=$1.Z ;; esac ${ftp?} -n ftp.uu.net <