awk in dockerfile

This commit is contained in:
Krzysztof Jurkiewicz 2019-04-26 13:45:12 +02:00
parent 8a36f10794
commit c21f33c3ce

View File

@ -1,10 +1,14 @@
while read line; do
echo "processing: $line"
echo "$line" | awk -F '\t' '{print $1}'
echo "2"
echo "$line" | awk -F '\t' '{print $2}'
echo "3"
echo "$line" | awk -F '\t' '{print $3}'
echo "$line" | awk -F '\t' '{print $2}' > hypothesis.txt
echo "$line" | awk -F '\t' '{print $3}' > reference.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
done < wikiniews_results.tsv