Skip to content

Instantly share code, notes, and snippets.

@equwal
Created November 20, 2019 03:26
Show Gist options
  • Save equwal/92d3b6bb19c4045d54c74b36d294a4e6 to your computer and use it in GitHub Desktop.
Save equwal/92d3b6bb19c4045d54c74b36d294a4e6 to your computer and use it in GitHub Desktop.
Show an IRC log.
#!/bin/fish
# Show a recent log of the IRC channel (ZNC bouncer with logging enabled)
cd ~/.znc/moddata/log/equwal/freenode/"$argv"
for i in (find . -name '*.log' | sort -r | head -n 1)
cat $i
end | perl -pe 's/.*?\] \*\*\* .*\n//; print;' | tail -n 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment