ref: 26fb5eb9efc7fe76b45cafefd313d1d2a9ccd9d6
parent: 4145dacafacbe86fa62f400d0d1f2d8daa3c3582
author: sl <sl@frank>
date: Thu Nov 6 21:43:47 EST 2025
oktr: smarter use of unicode 00a0.
--- a/oktr
+++ b/oktr
@@ -2,7 +2,7 @@
# read posts from okturing.com.
rfork e
# br is 80 columns wide
-br='-------------------------------------------------------------------------------- ' # unicode 00a0 at the end "ensures" this line is grep-able.
+br='-------------------------------------------------------------------------------- ' # unicode 00a0 at the end
lines=10
posts=5
top=`{hget http://okturing.com | @@ -15,10 +15,10 @@
for(i in `{seq `{echo $top - 5 | bc} $top}){url=http://okturing.com/src/$i/body
echo $br
- echo hget $url
+ echo hget $url ' ' # unicode 00a0 at the end
echo
hget $url |
- awk 'NR<'^$lines^'{print; next}{ print "\n( more )"; exit}' # unicode 00a0 on both sides of "more."+ awk 'NR<'^$lines^'{print; next}{ print "\n( more ) "; exit}' # unicode 00a0 at the endecho
echo
}
--
⑨