tools for grepping in IRC client logs (vg=sirc vgi=irssi)
authormirabilos <m@mirbsd.org>
Wed, 3 Oct 2018 19:15:40 +0000 (19:15 +0000)
committermirabilos <m@mirbsd.org>
Wed, 3 Oct 2018 19:15:40 +0000 (19:15 +0000)
posix/vg [new file with mode: 0644]
posix/vgi [new file with mode: 0644]

diff --git a/posix/vg b/posix/vg
new file mode 100644 (file)
index 0000000..99202ec
--- /dev/null
+++ b/posix/vg
@@ -0,0 +1,2 @@
+#!/bin/sh
+egrep -h '] (<|«|(-|¬|\[|\[\[|>|\*-> )\ 2|\*\*\* [^ ]* did a CTCP |\* )' ~/sirc.log | tr -d '\ 2'
diff --git a/posix/vgi b/posix/vgi
new file mode 100644 (file)
index 0000000..9d829ad
--- /dev/null
+++ b/posix/vgi
@@ -0,0 +1,2 @@
+#!/bin/sh
+egrep -ve ' has (quit|joined|left) ' -e '-\!- (ServerMode|Netsplit|Irssi)' -e 'is now known as' -e '^--- ' "$@"