All pastes #956538 Raw Edit

Stuff

public text v1 · immutable
#956538 ·published 2008-03-25 11:44 UTC
rendered paste body
#!/bin/bash
 
 
myFileHodn="hodnoceni.txt"

 
 
for (( i=1 ; i <= $# ; i++ )) ;do
     eval arg='$'$i
     if ["$arg" = "-h"] ;then i=`expr $i + 1`; eval arg='$'$i ; myFileHodn=$arg
     elif ["$arg" = "-o"] ;then i=`expr $i + 1`; eval arg='$'$i ; vystupny=$arg
     elif ["$arg" = "-g"] ;then echo nieco sa zmeni
     elif ["$arg" = "-v"] ;then i=`expr $i + 1`; eval arg='$'$i ; omezeni=$arg
     else echo "$arg je neznamy argument." ; exit
     fi
     done

cat $myFileHodn | while myLineHodn=`line`
do
  temphodn="$allFile"
  allFile="$temphodn $myLineHodn" 

  output=`echo $myLineHodn | sed -e "s/ /$a/mg"`
  output=`echo $output | sed -e 's/;/ /mg'`

  counter=0
  for word in $output ; do
    eval xhodn_$counter='`echo $word | sed -e "s/$a/ /mg"`'
    let counter++ # increasing counter
  done
           # dany riadok bude teraz ulozeny v MyLineHodn
            #a jednotlive zaznamy v xhodn_0 - xhodn_x
            #tj nick bude v xhodn_0

b=0
for (( i=1 ; i <= 8 ; i++)) ;do
  a=5
  while ( a > $xhodn_2 ) ;do
    a=($a)*2;
  done
  $(a-5,$a-1)=$(a-5,$a-1) +1
  #if [ b < $a ] ;then b= $a;
done
echo $a