"Fossies" - the Fresh Open Source Software Archive

Member "usr/share/Ted/examples/fixOpenOfficeRtf.sh" (1 Feb 2013, 443 Bytes) of package /linux/misc/old/ted-2.23-linux-amd64.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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