Jas
Jas

Reputation: 15103

grep a rar in cygwin

I want to do grep texts files inside a rar without extracting the rar file to disk, I tried a couple of combinations with pipes however it didnt work i tried for example

unrar e myrar.rar | grep mysearchedline

however it actually opened it to disk, I don't want to open it to disk, I don't have enough space for it to be opened (its real big with real big logs).

Thanks.

Upvotes: 2

Views: 2517

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

Try p instead of e, and don't forget to specify the name of the file you want to grep through.

Upvotes: 3

Related Questions