From: Paul Hänsch Date: Mon, 16 Jul 2018 10:21:13 +0000 (+0200) Subject: minor optimisation X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=55052a16e5c2792b25c90b8aea0e3daea06b533a;p=cgilite minor optimisation --- diff --git a/file.sh b/file.sh index 084b7e6..82eefae 100755 --- a/file.sh +++ b/file.sh @@ -66,7 +66,7 @@ FILE(){ s;^[^ ]+ (...) ([0-9]) (..:..:..) ([0-9]{4})$;\4-\1-\2 \3;; s;Jan;01;; s;Feb;02;; s;Mar;03;; s;Apr;04;; s;May;05;; s;Jun;06;; s;Jul;07;; s;Aug;08;; s;Sep;09;; s;Oct;10;; s;Nov;11;; s;Dec;12;;' \ - | xargs -0 date +%s -ud 2>&- + | xargs -r0 date +%s -ud 2>&- )" range="$(HEADER Range |sed -nr 's;^bytes=([0-9]+-[0-9]*|-[0-9]+)$;\1;p;q;')"