Th3NiKo

Untitled

Mar 6th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash
  2. input="/home/students/s416142/Desktop/test/paranormal-or-skeptic/mostcont"
  3. while IFS= read -r line
  4. do
  5.     p=`xzcat in.tsv.xz | paste expected.tsv - |grep "P.* $line" | wc -l`
  6.     s=`xzcat in.tsv.xz | paste expected.tsv - |grep "S.* $line" | wc -l`
  7.     diff=$((p-s))
  8.     if [ $p -ge $s ]
  9.     then
  10.         echo "$line, $diff"
  11.     fi
  12. done < "$input"
Advertisement
Add Comment
Please, Sign In to add comment