File size: 419 Bytes
4349b7e
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/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))