s452108-mlworkshops/count2.sh

5 lines
154 B
Bash
Raw Normal View History

2020-04-03 16:36:32 +02:00
#!/bin/bash
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
avg=$(num-average clear.txt)
echo "Medium: $avg" >> clear.txt