pulsebridge-app/scripts/project_stats
2024-03-07 01:32:21 +05:30

14 lines
239 B
Bash

#!/bin/bash -eu
stats_for() {
local ext="$2"
local location="$1"
echo "Files of type: $ext"
wc -l $(find $location -name \*."$ext")
echo
}
stats_for src/main java
stats_for 'src/*est' java
stats_for demo-server js
stats_for src xml