Search code examples
linuxcommand-linerarwinrar

How to read the rar file comment on linux command line


I have foo.rar, and I want to read the file comment

Comment example on Windows: enter image description here

How to do it in Linux command line?


Solution

  • Try:

    rar v archive.rar fname | grep Comment:
    

    should work for a one-liner comment. If the comment spans multiple lines you will need more sophisticated output parsing.