Sunday, September 21, 2014

Search RAR archives with grep

ls *.rar | xargs -t -I {} rar lf {}  | grep -i <something youre looking for>

The -t option to xargs announces the command line that it is processing (in this case which rar file), and the rar lf lists the files in the rar archive.

No comments:

Post a Comment