5 lines
154 B
Bash
5 lines
154 B
Bash
|
#!/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
|