ref: a43a30b45c05fd3890b46f40d0ac084e312cd1fa
parent: c3cfd06564ab868d1e78bf5fe8fe6fac07202de9
author: sl <sl@stanleylieber.com>
date: Tue Feb 9 17: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 |
--
⑨