mirror of
https://github.com/edoardottt/awesome-hacker-search-engines.git
synced 2024-09-20 15:55:52 +00:00
15 lines
303 B
Bash
15 lines
303 B
Bash
|
#!/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
|