mirror of
https://github.com/edoardottt/awesome-hacker-search-engines.git
synced 2024-06-25 22:12:23 +00:00
17 lines
316 B
Bash
Executable File
17 lines
316 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo $(pwd)
|
|
|
|
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 |