Skip to content

Instantly share code, notes, and snippets.

@tigransimonyan
Last active August 10, 2023 18:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigransimonyan/ec8696c330de9c217ca014fc9d61a2e0 to your computer and use it in GitHub Desktop.
Save tigransimonyan/ec8696c330de9c217ca014fc9d61a2e0 to your computer and use it in GitHub Desktop.
#!/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