From cefc352c74d7d6ed7c9091eee9acac3a08c92a1e Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Wed, 29 Oct 2014 12:03:32 -0400 Subject: [PATCH] newt: only print a date if we've managed to extract a date --- rc/bin/newt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/bin/newt b/rc/bin/newt index b65df64b5..9417e64d7 100755 --- a/rc/bin/newt +++ b/rc/bin/newt @@ -49,7 +49,10 @@ fn fmtd{ ti=$date(3) if not ti=`{echo $date(4) | awk '{print substr($0,0,5);}'} - echo $mo/$da $ti + if(! ~ $#mo 0 && ! ~ $#da 0 && ! ~ $#ti 0) + echo $mo/$da $ti + if not + echo nil } fn geth{ for(i in $*){