如何在Linux命令行上阅读rar文件注释 [英] How to read the rar file comment on linux command line

查看:203
本文介绍了如何在Linux命令行上阅读rar文件注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 foo.rar ,我想阅读文件注释

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

在Windows上的注释示例:

Comment example on Windows:

如何在Linux命令行中做到这一点?

How to do it in Linux command line?

推荐答案

尝试:

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.

这篇关于如何在Linux命令行上阅读rar文件注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆