weechat / scripts

Official scripts for WeeChat.
https://weechat.org/scripts/
231 stars 222 forks source link

grep.py only greps the latest logfile #38

Open Mikaela opened 10 years ago

Mikaela commented 10 years ago

Yesterday I changed my logger.file.mask to $plugin/$name/%Y-%m-%d.weechatlog and today I noticed that grep searches only for the latest file.

I have logs also with the default name $plugin.$name.weechatlog and daily logs with the new name.

ghost commented 10 years ago

I'm not sure whether this is intentional, but you can use /grep -a log irc/freenode/*.weechatlog.

Mikaela commented 10 years ago

I think that /grep something should grep all log files of channel where I run it or at least that is what I expected. I am not sure what your command (grep -a log irc/freenode/2014-09-09.weechatlog) is supposed to do.

ghost commented 10 years ago

Sorry, see the edit to my comment.