ref: 333afa364a9a9585fa8fd5cbc6a09e638d752c45
parent: 6532344f329e7057f46a405fc34cae778950b95f
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 $*){--
⑨