1 #!/bin/sh 2 3 #### 4 #### Some attempts to make OpenOffice rtf more like 5 #### Microsoft rtf as documented. 6 #### 7 8 IN=sample.rtf 9 OUT=ss.rtf 10 11 sed -e 's/^{\\headerf/\\titlepg{\\headerf/' \ 12 -e 's/^{\\headerl/\\facingp{\\headerl/' \ 13 -e 's/^{\\headerr/\\facingp{\\headerr/' \ 14 -e 's/^{\\footerf/\\titlepg{\\footerf/' \ 15 -e 's/^{\\footerl/\\facingp{\\footerl/' \ 16 -e 's/^{\\footerr/\\facingp{\\footerr/' \ 17 -e 's/\\nobrdr/\\brdrnone/g' $IN > $OUT