File:  [LON-CAPA] / doc / homework / Attic / temp.tcl
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jun 20 19:27:56 2000 UTC (24 years ago) by albertel
Branches: MAIN
CVS tags: version_0_4, stable_2002_spring, stable_2002_july, stable_2002_april, stable_2001_fall, STABLE, HEAD
-adding homework documentation

    1: set tag ""
    2: while {1} {
    3: 	set aline [gets file0]
    4: 	if {[eof file0]} { exit}
    5: 	regsub -all {<tag>} $aline {<b>\&lt;} aline
    6: 	regsub -all {</tag>} $aline {\&gt;</b>} aline
    7: 	regsub -all {<arg>} $aline {<i>} aline
    8: 	regsub -all {</arg>} $aline {</i>} aline
    9: 	puts $aline
   10: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>