News for hackers. Stuff that matters.
Re:The Unix `Who` Command by forgotpwd16 on Thursday September 03, 2020 @12:22PM (#24365624)
Source for the mentioned script: https://github.com/0intro/plan9/blob/master/rc/bin/who. Also, other utilities implemented as scripts are fshalt (P9's shutdown), kill, lookman (P9's apropos), uptime and whois.
Re:The Unix `Who` Command by jf on Thursday September 03, 2020 @12:33PM (#24365755)
Does anybody know why there are line breaks in the sed command?
Re:The Unix `Who` Command by forgotpwd16 on Thursday September 03, 2020 @01:40PM (#24366506)
It runs multiple expressions. That is

  sed '/pattern1/d
  pattern2/d'
is the same with

  sed '/pattern1/d; /pattern2/d'
and

  sed -e '/pattern1/d' -e '/pattern2/d'
I believe those are portable across all `sed` implementations, and they at least work with GNU `sed --posix` and plan9port's sed.
Re:The Unix `Who` Command by jf on Thursday September 03, 2020 @09:48PM (#24370968)
Thank you! This is exactly the kind of reply I was hoping for.