big_data_projet/07_check_files.sh
2020-04-06 18:23:12 +02:00

15 lines
367 B
Bash
Executable File

#!/bin/bash
result=[]
i=0
j=0
for filename in /dev/shm/VirusShare_*; do
result="$(python3.6 /home/ubuntu/bigData/projet_big_data/06_extract_features_and_predict.py $filename)"
python3.6 /home/ubuntu/bigData/projet_big_data/06_extract_features_and_predict.py "$filename"
if [ $result == "1" ]
then
((j++))
fi
((i++))
echo "${j}/${i} bad answers"
done