sort -u bigfuckingfile.txt | uniq -u > uniquefuckingfile.txt
sort -u bigfuckingfile.txt | uniq -u > uniquefuckingfile.txt
for i in `sort -u bigfuckingfile.txt | uniq -u`;
do
page=$(curl -is $i);
out=$(echo $page | head -n1 | cut -d\ -f2);
echo "Status:\t$out \t$i";
[[ "$out" == "200" ]] && echo $i >> status-ok.txt;
done
# example input: bigfuckingfile.txt
http://www.google.com
http://www.google.com
http://google.com
http://google12345.com
# script output:
Status: http://google12345.com
Status: 301 http://google.com
Status: 200 http://www.google.com
# example output file: status-ok.txt
http://www.google.com