code: plan9front

Download patch

ref: 72868594c7922a2b232fb8876cac3f25a4f76398
parent: ac5a8ea1e270bc8ffc2e9ea183e1de712aa4c64e
author: sl <sl@stanleylieber.com>
date: Tue Feb 9 22:50:31 EST 2021

newt: remove fn f, replace with walk

--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -25,7 +25,6 @@
 	if(~ $yn y)
 		cat /tmp/post >$mnt/$group/post
 }
-fn f { du -a $* | sed 's/^.*	//g' }
 fn fmtd{
 	date=`{cat}
 	if(! ~ $date(1) [0-9]*)
@@ -96,7 +95,7 @@
 fn h{ sed -n $1^p /tmp/h }
 fn k{
 	kmnt=`{echo $mnt | sed 's/\//\\\//g'}
-	f $mnt/$* |
+	walk $mnt/$* |
 		grep -v -e '\/([0-9]+|article|body|header|post|xover)$' |
 		sed 's/^'$"kmnt'\//  g	/g' |
 		sort |