From 55052a16e5c2792b25c90b8aea0e3daea06b533a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 16 Jul 2018 12:21:13 +0200 Subject: [PATCH] minor optimisation --- file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;')" -- 2.39.2