Created
January 4, 2022 08:17
-
-
Save Calmarius/40af851a8c8d77148fa5beb41747526f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage $0 <directory>" | |
exit | |
fi | |
DIR=$1 | |
VERY_GOODS=`grep ^++ -rn "$DIR" | wc -l` | |
GOODS=`grep ^+ -rn "$DIR" | wc -l` | |
BADS=`grep ^- -rn "$DIR" | wc -l` | |
VERY_BADS=`grep ^-- -rn "$DIR" | wc -l` | |
echo "Very good: $VERY_GOODS" | |
echo "Good: $GOODS" | |
echo "Bad: $BADS" | |
echo "Very bad: $VERY_BADS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment