summaryrefslogtreecommitdiff
path: root/rc/bin/newt
diff options
context:
space:
mode:
authorsl <sl@stanleylieber.com>2021-02-09 22:50:31 -0500
committersl <sl@stanleylieber.com>2021-02-09 22:50:31 -0500
commit72868594c7922a2b232fb8876cac3f25a4f76398 (patch)
tree0e9d717de602fa515346638c5ff02d7578868e8b /rc/bin/newt
parentac5a8ea1e270bc8ffc2e9ea183e1de712aa4c64e (diff)
downloadplan9front-72868594c7922a2b232fb8876cac3f25a4f76398.tar.xz
newt: remove fn f, replace with walk
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-xrc/bin/newt3
1 files changed, 1 insertions, 2 deletions
diff --git a/rc/bin/newt b/rc/bin/newt
index a79a0e796..0a899bf51 100755
--- a/rc/bin/newt
+++ b/rc/bin/newt
@@ -25,7 +25,6 @@ fn e{
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 getr{
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 |