From c1a2342cebb397e08a275f7a0fc7a3620cc07024 Mon Sep 17 00:00:00 2001 From: Morgan Date: Sat, 8 Sep 2018 11:40:38 +0200 Subject: [PATCH] script: detect links missing a date --- missing_dates.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 missing_dates.sh diff --git a/missing_dates.sh b/missing_dates.sh new file mode 100644 index 0000000..0632083 --- /dev/null +++ b/missing_dates.sh @@ -0,0 +1,6 @@ +#!/bin/bash +current=$(date "+%Y") +for ((year=1900; year<=current; year=year+1)) +do + grep "/$year/" README.md | grep -v "($year)" +done