checkSentences.sh 275 Bytes
#!/bin/bash
ALL=$(find ../fullCorpus -name 'fold_morph.txt' | wc -l)
COUNTER=1

for f in $(find ../fullCorpus -name 'fold_morph.txt')
do
  echo -ne "\r\e[K$COUNTER/$ALL $f"

  if [[ $(python3 checkSentences.py $f) ]]; then
    echo $f
  fi

  let COUNTER=COUNTER+1
done
echo