cat components.txt | while read line; do echo $line; grep -o -r $line ./src | wc -l; done

grep -o : 결과가 있는 경우만 나온다.

wc -l : 라인 숫자를 더해서 결과를 알려준다.

+ Recent posts