ref: cefc352c74d7d6ed7c9091eee9acac3a08c92a1e
parent: e1b0ab17458d5dce5f228a6e6e231d8128db2e4b
author: stanley lieber <stanley.lieber@gmail.com>
date: Wed Oct 29 08:03:32 EDT 2014
newt: only print a date if we've managed to extract a date
--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -49,7 +49,10 @@
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 $*){