Re: search contents of a tar.gz
Brian Stults <bs7452@csc.albany.edu> writes:
> Is there a way to search the contents of a tar.gz file withouth having
> to extract everything. Specifically, I want to determine the disc-id of
> an audio CD, so I downloaded the freedb database in tar.gz format. Of
> course, it's a very large file. I would like to grep the contents to
> find the CD that I'm looking for, but I don't want to extract
> everything. I thought there would be a series of piped commands that
> would allow me to do it, but I can't figure it out.
tar -tzf file.tar.gz | grep something
--
Olaf Meeuwissen Epson Kowa Corporation, Research and Development
Reply to: