18 lines
318 B
Bash
Executable File
18 lines
318 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e -u -o pipefail
|
|
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
|
|
|
|
cd "$root"
|
|
|
|
total=0
|
|
|
|
for lang in Lang/*; do
|
|
count=$(find -L "$lang" -type f -not -name '00-*' | wc -l)
|
|
printf '%06d %s\n' "$count" "${lang#Lang/}"
|
|
total=$((total+count))
|
|
done
|
|
|
|
printf '%06d %s\n' "$total" Total
|