RFC printing
I spent a freaking hour to figure out how to print RFC docs the way I like...
healing
enscripting
enscript \s-\s-margins=15:5:5:15 -f Courier@13/13 -B rfc959.txt -p rfc959.2up.ps -U 2
printing
/usr/local/bin/lpr rfc959.2up.ps
in the end
The output postscript file is larger then the preenscripted ones available at
http://rfc.net, but my eyes like them better for a slightly larger font.
eReader
cat rfc1034.txt|unexpand -a|expand -t2|perl -0pe 's/\sn*.*\sn^L\sn.*\sn*/\sn/g;s/^ //mg'|fmt -52|unix2dos > /mnt/1034.txt
iconv -c -t US file.txt|sed -e '/mospagebreak/d;/Mambo Generated/d'|fmt -52|perl -0pe 's/\sn{3,}/\sn\sn/'>/mnt/sorrys.txt
for i in *;do mv $i `echo $i|sed -Ee 's/rfc(..txt)/rfc000\s1/;s/rfc(...txt)/rfc00\s1/;s/rfc(....txt)/rfc0\s1/'`;done
for i in *;do dir=`echo $i|cut -c-4`/`echo $i|cut -c-5`;install -d $dir;mv $i $dir;done
Topic revision: r1 - 28 Apr 2007 - 18:52:00 - Main.AndrewPantyukhin