I am wring a BASH script. I am using RAR 3.93 on Ubuntu 10.08. I want to add a comment to an archive example.rar. The comment is "This is a comment".
rar c example.rar
Processing archive rarcomment.rar
Reading comment from stdin
But I want to add the comment from a variale instead of typing it from the stdin.
$Comment="This is a comment"
How can I do that?