Script calculate
This commit is contained in:
parent
5cff50d1d9
commit
63f74932c5
8
calcular-porcentaje.sh
Normal file
8
calcular-porcentaje.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
CSV="resources/top-1m.csv"
|
||||||
|
NUM_WORDPRESS=$(cat $CSV | grep ,true$ | wc -l)
|
||||||
|
NUM_NOT_WORDPRESS=$(cat $CSV | grep ,false$ | wc -l)
|
||||||
|
NUM_TIMEOUT=$(cat $CSV | grep ,timeout$ | wc -l)
|
||||||
|
TOTAL=$(cat $CSV | wc -l)
|
||||||
|
|
||||||
|
echo "($NUM_WORDPRESS * 100) / ($TOTAL - $NUM_TIMEOUT)" | bc
|
Loading…
Reference in New Issue
Block a user