11.06.21
Gemini version available ♊︎Reading Concise IRC Logs of Techrights in (Almost) Real Time From the Command Line
Video download link | md5sum 98e0fbb9686d5cd46fd09bb149f06622
Summary: To make it possible to follow all the Techrights IRC channels from the command line throughout the day we share some shell scripts that I personally use (to keep myself abreast of what goes on)
JUST A FEW months ago we explained How to Follow All Our Channels (Interactively) From the Command Line and ways of Following Techrights IRC Channels From the Command Line (or the Web and Gemini). We continue to explore new ways of interacting with IRC, including over Gemini and with the command line (cURL and GNU wget
as the Swiss army knives).
In the video above I show some small and simple tools I developed for my own use and added/pushed to Git a few weeks ago (further changes days ago). All the programs are also available in git@techrights (under Desktop-Utils).
Long story short, to get updates every 5 minutes for all channels (filtered, simplified):
watch --color -n 300 "wget -qO- http://techrights.org/irc-archives/irc-status.txt | tail -n 400 \ | cut -c18-135 | GREP_COLOR='01;36' grep --color=always 'techrights-news\|$' | grep -i --color=always 'schestowitz\|$' \ | grep -v '<==' \ | grep -v 'techrights-ipfs-bot' \ | grep -v 'IRC logs ready' \ | sed 's/> / /' \ | sed 's/techrights-news/ TR/' \ | sed 's/schestowitz/ RS/' \ | uniq \ | sed 's/☞.*$//' \ | sed 's/•.*$//' \ | tail -n55 | grep -v 'Binary file'"
To get just the news from the main channel (the techrights-news
bot):
watch --color -n 300 "wget -qO- http://techrights.org/irc-archives/irc-status.txt | tail -n 150 \ | cut -c18-100 \ | GREP_COLOR='01;36' grep --color=always 'techrights-news\|$' \ | grep -i --color=always 'schestowitz\|$' \ | grep -v '<==' \ | sed 's/> / /' \ | grep techrights-news \ | uniq \ | perl -e 'print reverse <>' \ | sed 's/techrights-news/TR/' \ | sed 's/● NEWS ●/N/'"
On most modern distros of GNU/Linux all the required programs are probably available already. █