LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2005, 04:09 PM   #1
plainkeyman
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Rep: Reputation: 0
grep search in zip/rar... etc


is there a way to specify/configure/patch grep to be able to include archive files in it's searching?

it would be nice for zip, rar, gz/tar-gz ...etc


thanks
 
Old 05-23-2005, 04:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Nope.

You'd have to write a script-wrapper that uses e.g.
gunzip, bzcat, tar tvf, ... respectively, and pipe the
results of those to grep.


Cheers,
Tink
 
Old 05-23-2005, 06:05 PM   #3
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Redhat and Fedora have zgrep.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To recursively search with grep grautu Slackware 5 11-21-2005 02:53 AM
ZIP/RAR password cracking software?? mlu Linux - Software 2 10-12-2005 02:50 AM
Pic viewer that shows the content of zip & rar Cyber Maid Linux - Software 1 06-01-2005 07:21 AM
gui unrar/rar/zip/unzip etc.. programs kurrupt Linux - Software 3 08-18-2004 06:46 AM
Do you know a good program to open RAR & ZIP files? SpOmA Linux - Software 2 02-28-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration