You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Counting number of files at some root of the data folder
# from the root of the project# cd ~/git/pa-pattern-complexity
DATA_DIR=data
STUDY_C_COUNT=$(find $DATA_DIR/study-c -type f | wc -l)
STUDY_D_COUNT=$(find $DATA_DIR/study-d -type f | wc -l)
STUDY_G_COUNT=$(find $DATA_DIR/study-g -type f | wc -l)
STUDY_H_COUNT=$(find $DATA_DIR/study-h -type f | wc -l)printf"Count of files: \n"``"Study C ($DATA_DIR/study-c): $STUDY_C_COUNT \n"``"Study D ($DATA_DIR/study-d): $STUDY_D_COUNT \n"``"Study G ($DATA_DIR/study-g): $STUDY_G_COUNT \n"``"Study H ($DATA_DIR/study-h): $STUDY_H_COUNT \n"| tee $DATA_DIR/file_count.txt