"Fossies" - the Fresh Open Source Software Archive

Member "teapot-2.3.0/examples/graphtest.sh" (6 Feb 2012, 262 Bytes) of package /linux/privat/old/teapot-2.3.0.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 ( echo This is the same data, once as a pie graph and once as a box graph.
    4 echo .PS
    5 ../graph -w 2 <<eof
    6 "a" 1   1
    7 "b" 2.5
    8 "c" 4
    9 eof
   10 ../graph -n -b -w 2 <<eof
   11 "a" 1
   12 "b" 2.5
   13 "c" 4
   14 eof
   15 echo with .w at last [].e
   16 echo .PE ) | groff -Tps -p -mm >graphtest.ps