jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [configs/] [shiftwmy] - Rev 43 Go to most recent revision

Compare with Previous - Blame - Download



confname="prosek.conf.old"
xshift=0
yshift=100

for i in `cat $confname | tr "#" "&" | tr " " "!" | tr "\t" "$" | tr "\n" "@" | sed 's/@/ @/g'`
do
  key=`echo $i | sed 's/@//g' | tr "$" " " | tr "!" " " | awk '{print $1}'`

  case $key in
  POSITION)
    osax=`echo $i | tr "!" " " | awk '{print $2}'`
    osay=`echo $i | tr "!" " " | awk '{print $3}'`
    osax=`expr $osax + $xshift`
    osay=`expr $osay + $yshift`
    echo "      POSITION "$osax" "$osay
  ;;
  VIA)
    osax=`echo $i | tr "!" " " | awk '{print $2}'`
    osay=`echo $i | tr "!" " " | awk '{print $3}'`
    osax=`expr $osax + $xshift`
    osay=`expr $osay + $yshift`
    echo "      VIA "$osax" "$osay
  ;;
  *)
    echo $i | tr "&" "#" | tr "!" " " | tr "$" "        " | sed 's/@//g' 
  esac

done

Powered by WebSVN 2.2.1