From d4a026b397bfc9bf1dc73262b901c409f600891f Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Sun, 4 Aug 2019 14:34:51 +0200 Subject: [PATCH] function to find article pub date from webpages --- dot_zsh_functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_zsh_functions b/dot_zsh_functions index 00fa271..b75829c 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -77,3 +77,6 @@ function istherenewissues() { fi echo "$LASTISSUE" > .newjiraissue } +function greppagedate() { + curl -sSL "$*" | \grep datetime | \grep -Eo '[[:digit:]]{4}' | head -n1 +}