Created
August 6, 2013 14:05
-
-
Save asm89/6164748 to your computer and use it in GitHub Desktop.
Search for messages in certain channels in your weechat log files (defined in my .bashrc) Usage: `channelgrep <channelname> keyword`
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
# grep messages from weechat logs | |
channelgrep() { | |
channel=$1 | |
search=$2 | |
channelFiles=~/.weechat/logs/*#$channel* | |
grep "$search" $channelFiles | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment