From e7fad4516e0e7705480312caa427e838f3321948 Mon Sep 17 00:00:00 2001 From: Sylvain Boulmé Date: Thu, 28 May 2020 07:27:46 +0200 Subject: automatic date in the html index --- tools/fix_html_date.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tools/fix_html_date.sh (limited to 'tools') diff --git a/tools/fix_html_date.sh b/tools/fix_html_date.sh new file mode 100755 index 00000000..c7fbdabe --- /dev/null +++ b/tools/fix_html_date.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# +# Replace an HTML comment "" by the current date +# in the file given by $1 (with $2 as prefix and $3 as suffix) +# +# Result on standard output + +sed -e "s//$2$(date +'%F')$3/g" $1 -- cgit