cat zadanie3/sclite.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > results_wer.txt # (S + D + I)/(S + D + C) awk '{ print ($2 + $3 + $4) / ($2 + $3 + $1) }' results_wer.txt cat results_wer.txt