11 lines
315 B
Bash
Executable file
11 lines
315 B
Bash
Executable file
#!/bin/bash
|
|
|
|
COUNTS=$(git ls-files --exclude='\.gitignore' --exclude='LICENSE' | xargs wc | tail -n 1)
|
|
WORDS=$(echo $COUNTS | awk '{print $2}')
|
|
BYTES=$(echo $COUNTS | awk '{print $3}')
|
|
TOKENS=($((WORDS / 4)))
|
|
|
|
echo "words in repo: $WORDS"
|
|
echo "bytes in repo: $BYTES"
|
|
echo "tokens in repo (~words / 4): $TOKENS"
|