1 | 37 | simandl | |
2 | | | confname="prosek.conf.old" |
3 | | | xshift=0 |
4 | | | yshift=100 |
5 | | | |
6 | | | for i in `cat $confname | tr "#" "&" | tr " " "!" | tr "\t" "$" | tr "\n" "@" | sed 's/@/ @/g'` |
7 | | | do |
8 | | | key=`echo $i | sed 's/@//g' | tr "$" " " | tr "!" " " | awk '{print $1}'` |
9 | | | |
10 | | | case $key in |
11 | | | POSITION) |
12 | | | osax=`echo $i | tr "!" " " | awk '{print $2}'` |
13 | | | osay=`echo $i | tr "!" " " | awk '{print $3}'` |
14 | | | osax=`expr $osax + $xshift` |
15 | | | osay=`expr $osay + $yshift` |
16 | | | echo " POSITION "$osax" "$osay |
17 | | | ;; |
18 | | | VIA) |
19 | | | osax=`echo $i | tr "!" " " | awk '{print $2}'` |
20 | | | osay=`echo $i | tr "!" " " | awk '{print $3}'` |
21 | | | osax=`expr $osax + $xshift` |
22 | | | osay=`expr $osay + $yshift` |
23 | | | echo " VIA "$osax" "$osay |
24 | | | ;; |
25 | | | *) |
26 | | | echo $i | tr "&" "#" | tr "!" " " | tr "$" " " | sed 's/@//g' |
27 | | | esac |
28 | | | |
29 | | | done |