diff options
author | sl <sl@stanleylieber.com> | 2021-02-09 22:50:31 -0500 |
---|---|---|
committer | sl <sl@stanleylieber.com> | 2021-02-09 22:50:31 -0500 |
commit | 72868594c7922a2b232fb8876cac3f25a4f76398 (patch) | |
tree | 0e9d717de602fa515346638c5ff02d7578868e8b /rc/bin/newt | |
parent | ac5a8ea1e270bc8ffc2e9ea183e1de712aa4c64e (diff) | |
download | plan9front-72868594c7922a2b232fb8876cac3f25a4f76398.tar.xz |
newt: remove fn f, replace with walk
Diffstat (limited to 'rc/bin/newt')
-rwxr-xr-x | rc/bin/newt | 3 |
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 | |