안녕에 특정 파일의 수를 계산하는 방법은 디렉토리에 test_1.jpg, train_1.jpg, test_2.jpg, train_1.jpg .....
이 경우 리눅스우분투 리눅스 : 디렉토리
command:ls -l . | egrep -c '^-'.
있는 디렉토리에있는 모든 파일의 수를 계산하는 방법을 알고있다. 난 단지 test_*jpg
의 수를 계산하고이 디렉토리에 train_*.jpg
의 수를 세지 않으려합니다. 어떻게 리눅스 명령을 사용하여 그것을 할 수 있습니다. 감사!
https://unix.stackexchange.com/questions/146760/count-files-in-a-directory-by-extension – 4EACH