News for hackers. Stuff that matters.
Re:Google's morale crisis is about to get worse by 1vuio0pswjnm7 on Monday March 04, 2024 @06:42PM (#39597624)
FWIW

I only use curl and firefox in HN examples. I do not use these programs myself.

sed and tr are each small, fast and ubiquitous. Found by default in GNU/Linux and BSD userland for the last 30 years. Both found in GNU/Linux and BSD multicall binaries.

I'm not a Perl RE user. Neither busybox nor NetBSD grep has a -P option.

Extracting text from HTMLJSON, as a one-off, on the computers I own (older, smaller, underpowered) might look something like

   echo https://www.theverge.com/2024/3/3/24089843/google-morale-crisis-about-to-get-worse \
   |yy025|nc -vv h6 80 > 1.htm

   yy059 < 1.htm|sed -n '/articleBody/{p;q;}'|yy032|less
   or
   yy059 < 1.htm|grep -m1 articleBody|yy032|less
h6 is a loopback-bound forward proxy

Static binaries

   81.6 KiB nc
   45.9 KiB yy025
   45.9 KiB yy032
   45.9 KiB yy059
By comparison

   234.2 KiB GNU grep (dynamically-linked to libpcre2)
   614.3 KiB libpcre2-8.so.0.11.2
   370.0 KiB libjq.so.1.0.4 (dynamically-linked to jq)
   607.6 KiB libonig.so.5.4.0 (dynamically-linked to libjq)

There are no comments on this comment yet.