mirror of
https://github.com/edoardottt/awesome-hacker-search-engines.git
synced 2024-10-01 01:05:51 -04:00
Add scripts
This commit is contained in:
parent
fa63ea54b1
commit
8696779a4e
15
scripts/check-dups.sh
Executable file
15
scripts/check-dups.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user