Last active
August 10, 2023 18:24
-
-
Save tigransimonyan/ec8696c330de9c217ca014fc9d61a2e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL="https://www.ena.am/Info.aspx?id=5&lang=1" | |
TEXTS_TO_FIND=("Ե․Թադևոսյան" "Ե․ Թադևոսյան" "Թադևոսյան Ե․") | |
page_content=$(curl -s "$URL") | |
for text_to_find in "${TEXTS_TO_FIND[@]}"; do | |
if [[ $page_content == *"$text_to_find"* ]]; then | |
echo "$text_to_find հասցէի հոսանքը անջատելու են ։/ $URL" | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment