Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Created January 30, 2016 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jansanchez/031978a5b84e018f3b4d to your computer and use it in GitHub Desktop.
Save jansanchez/031978a5b84e018f3b4d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
DATE=$(curl "http://www.eventick.com.br/braziljs-2016" | grep -E "(<span[^>]+class\s*=\s*(\"|')hd-event-date\2[^>]*>)([^<]*)(</span>)" | sed -e 's/<\/span>//g' | sed -e 's/<span class="hd-event-date">//g' | tr -d ' ')
echo $DATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment