Contact me to be added to this repository. Push the creations you make for D&D, and they will be displayed in a nice website. See the website for how to contribute.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
382 B

#!/bin/bash
PATTERN="^(Items|Spells|Places|Monsters).*txt"
LIMIT=10
X=0
rm "new_content.txt"
git log --diff-filter=A --stat | while read t; do
if [[ $t =~ $PATTERN ]]; then
echo $t | cut -d' ' -f1 >> "new_content.txt"
echo $t | cut -d' ' -f1
#echo "${BASH_REMATCH[1]}"
((X++))
fi
if [[ "$X" = "$LIMIT" ]]; then
exit 0
fi
done