jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [configs/] [shiftwmy] - Blame information for rev 105

 

Line No. Rev Author Line
137simandl 
2confname="prosek.conf.old"
3xshift=0
4yshift=100
5 
6for i in `cat $confname | tr "#" "&" | tr " " "!" | tr "\t" "$" | tr "\n" "@" | sed 's/@/ @/g'`
7do
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 
29done

Powered by WebSVN 2.2.1