Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have tried to save the match "/lastlog match" to a file /tmp/irssi_discussion. I can get it work like "/lastlog /tmp/irssi_discussion" that saves the whole buffer, noted in the documentation. However, it fails on its variant.

How can I get the command "/LASTLOG match -file /tmp/irssi_discussion" working in Irssi?

share|improve this question
up vote 2 down vote accepted

You should put the pattern to match after the file, so:

/LASTLOG -file /tmp/irssi_discussion match

To get the full help information do:

/HELP lastlog

That includes the specific syntax details:

LASTLOG [-] [-file <filename>] [-window <ref#|name>] [-new | -away] [-<level>-<level...>] [-clear] [-count] [-case] [-regexp | -word] [-before[<#>]] [-after [<#>]] [-<# before+after>] [<pattern>] [<count>[<start>]]
share|improve this answer
Thank you. I thought the "[-]"-sign meant a pattern, hence the confusion. – Masi Aug 13 '09 at 14:09
What does the [-]-sign actually mean? – Masi Aug 13 '09 at 14:10
-: don't print the "Lastlog:" and "End of Lastlog" messages. – mark Aug 13 '09 at 14:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.