Jednu stvar nikako ne mogu da dokučim, da postavim prvo deo skripta:
Code: Select all
## INSTAGRAM
check_insta=$(curl -s -H "Accept-Language: en" "https://www.instagram.com/$username" -L | grep -o 'The link you followed may be broken'; echo $?)
printf "\e[1;77m[\e[0m\e[1;92m+\e[0m\e[1;77m] Instagram: \e[0m"
if [[ $check_insta == *'1'* ]]; then
printf "\e[1;92m Pronađen!\e[0m https://www.instagram.com/%s\n" $username
printf "https://www.instagram.com/%s\n" $username > $username.txt
elif [[ $check_insta == *'0'* ]]; then
printf "\e[1;93mNije Pronadjeno!\e[0m\n"
fi
## Facebook
printf "\e[1;77m[\e[0m\e[1;92m+\e[0m\e[1;77m] Facebook: \e[0m"
check_face=$(curl -s "https://www.facebook.com/$username" -L -H "Accept-Language: en" | grep -o 'not found'; echo $?)
if [[ $check_face == *'1'* ]]; then
printf "\e[1;92m Pronađen!\e[0m https://www.facebook.com/%s\n" $username
printf "https://www.facebook.com/%s\n" $username >> $username.txt
elif [[ $check_face == *'0'* ]]; then
printf "\e[1;93mNije Pronađen!\e[0m\n"
fi
## TWITTER
printf "\e[1;77m[\e[0m\e[1;92m+\e[0m\e[1;77m] Twitter: \e[0m"
check_twitter=$(curl -s "https://www.twitter.com/$username" -L -H "Accept-Language: en" | grep -o 'page doesn’t exist'; echo $?)
if [[ $check_twitter == *'1'* ]]; then
printf "\e[1;92m Pronađen!\e[0m https://www.twitter.com/%s\n" $username
printf "https://www.twitter.com/%s\n" $username >> $username.txt
elif [[ $check_twitter == *'0'* ]]; then
printf "\e[1;93mNije Pronađen!\e[0m\n"
fi
Code: Select all
elif [[ $check_face == *'0'* ]]; then
ili za instagram
Code: Select all
elif [[ $check_insta == *'0'* ]]; then
Po završetku pretrage on u folderu gde se nalazi skript u tekstualnom fajlu šampa šta je sve našao od pogodaka, ali to neće uraditi (ili će uraditi pogrešno) ako se ne unese ovaj tačno ovaj sufiks za instagram-insta, fejsbuk-face itd, mada on da sve pogodke precizno u samom terminalu.
Na osnovu čega se određuje taj sufiks?