Skip to content

Instantly share code, notes, and snippets.

@asm89
Created August 6, 2013 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asm89/6164748 to your computer and use it in GitHub Desktop.
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`
# 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