res-new-ind.sh 594 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
#cut -d, -f 3,4,9,10,11,12,13,14,15  fi_lavaMD_single_bit_RF.csv 
2
3
./res-new-ind-simple.sh $1
reg=2
German Leon's avatar
German Leon committed
4
num_reg=0;
5
for i in $(seq 0 1 255)
German Leon's avatar
German Leon committed
6
do
7
ib=$(echo "R"$i)
German Leon's avatar
German Leon committed
8
9
sib=$(echo "R"$i",")
n=$(cut -f $reg -d, $1|grep -w $ib|wc -l)
10
11
12
if [ "$n" -gt 0 ];
then
echo $ib"="$n
German Leon's avatar
German Leon committed
13
num_reg=$[$num_reg + 1]
14
15
fi
done
German Leon's avatar
German Leon committed
16
echo "Registros usados="$num_reg
17
for i in $(seq 0 1 255)
German Leon's avatar
German Leon committed
18
do
19
ib=$(echo "R"$i)
German Leon's avatar
German Leon committed
20
21
sib=$(echo "R"$i",")
n=$(cut -f $reg -d, $1|grep -w $ib|wc -l)
22
23
24
25
if [ "$n" -gt 0 ];
then
echo "============"$ib"========="
head -1 $1 >filetempreg.csv
German Leon's avatar
German Leon committed
26
grep $sib  $1 >> filetempreg.csv
27
28
./res-new-ind-simple.sh filetempreg.csv
fi
German Leon's avatar
German Leon committed
29
done