patch / count.sh
zeio's picture
fix(index): added missing entries to index, pulled more threads, updated folder names
4349b7e verified
#!/bin/bash
echo Number of threads in the 'threads' folder: $(tree threads | tail -n 1 | cut -d ' ' -f3)
for folder in threads/*; do
suffix=$(echo $folder | cut -d '/' -f 2)
echo " In folder $suffix: $(ls $folder | wc -l) ($(cat index.tsv | grep $suffix | wc -l) are found in index.tsv)"
done
n_rows_in_index=$(cat index.tsv | wc -l)
echo Number of threads in the 'index.tsv' file: $((n_rows_in_index - 1))