File size: 495 Bytes
4fd3cf1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
COUNTER=0

while true; 
    files=$(ls -l);
    echo "The files in the current directory are: $files";
    echo "download counter: $COUNTER";
    echo "\n------------------------------------\n";
    do huggingface-cli download julien-c/titanic-survival titanic.csv --repo-type dataset --local-dir "./" --quiet;
    sleep 30;
    COUNTER=`expr $COUNTER + 1`

    if [[ "$COUNTER" == '3' ]]
        then
            echo "Finall number of downloads: $COUNTER! \n"
            break
        fi
done