10 lines
274 B
Bash
10 lines
274 B
Bash
|
#!/bin/bash
|
||
|
echo -e "Lines:\n"
|
||
|
for lang in "Java" "XML" "JSP" "Properties" "JRXML" "HTML" "CSS" "JS"; do
|
||
|
files=($(find . -iname "*.$lang"))
|
||
|
if [ ${#files[@]} -ne 0 ]; then
|
||
|
count=$(wc -l ${files[@]} | tail -n1 | xargs)
|
||
|
echo "$lang: ${#files[@]} files - $count lines"
|
||
|
fi
|
||
|
done
|