Created
November 20, 2019 03:26
-
-
Save equwal/92d3b6bb19c4045d54c74b36d294a4e6 to your computer and use it in GitHub Desktop.
Show an IRC log.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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