The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep Log file cbo0485 UNIX for Dummies Questions & Answers 1 05-27-2008 08:24 PM
grep from file jaydeep_sadaria Shell Programming and Scripting 2 04-10-2008 09:03 AM
grep file ali560045 Shell Programming and Scripting 0 01-10-2008 04:51 AM
How to grep a number in a file to find them in another file ahjiefreak Shell Programming and Scripting 7 12-12-2007 03:01 AM
how to search -n in a file with grep lamilami Shell Programming and Scripting 2 11-28-2007 01:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-19-2004
Registered User
 

Join Date: Jul 2003
Location: Hambach - France
Posts: 29
grep for a tar File

Hello,

I made a tar with a lot of file, and i deleted all the Files.
So to win tile I want to make a grep of this tar file to search any text .

Is there a Unix command available for this ?

I tried : grep xyz file.tar but there is nothing .

Thanks for your help....
Reply With Quote
Forum Sponsor
  #2  
Old 07-19-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
How about
Code:
tar tvf file.tar | grep "whatever"
This is if you're looking for file names (which I assume you are).

Cheers
ZB
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0