Add scripts

This commit is contained in:
edoardottt 2023-04-12 12:15:59 +02:00
parent fa63ea54b1
commit 8696779a4e

15
scripts/check-dups.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
readme="README.md"
links=$(cat $readme | egrep "\- \[" | wc -l)
uniqlinks=$(cat $readme | egrep "\- \[" | uniq | wc -l)
if [[ $links -eq $uniqlinks ]];
then
echo "NO DUPLICATES FOUND."
else
echo "DUPLICATES FOUND!"
cat $readme | egrep "\- \[" | uniq -c | egrep -iv "1 - ["
fi