curls/utils/count.sh

10 lines
266 B
Bash
Raw Normal View History

2024-08-02 04:12:44 +00:00
#!/usr/bin/env bash
# Count the total number of lines
cd server/
echo "Python:"
wc -l app.py procs.py db.py bundle.py | awk 'END {print $1}'
cd static/dashboard/js/main/
echo "Javascript:"
find . -type f -name "*.js" -exec wc -l {} \; | awk '{t+=$1} END {print t}'