Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Computing Support Forums > Linux / Unix Discussion
Home Forums Register Search Today's Posts Mark Forums Read

Unix/Solaris find in files ?

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 19-Mar-2008, 01:33 PM
dmarsh26's Avatar
dmarsh26 dmarsh26 is offline
Longterm Member
Posts: 885
Points: 1591 dmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 pointsdmarsh26 has over 1500 points
Power: 26
None
Join Date: 24 May 2007
Location: Hampshire
Age: 33
Certifications: One or two...
WIP: Girlfriend+
Unix/Solaris find in files ?

Hello,

Does anyone have a quick and easy way to search by filename and text file content inside zip and tar files on solaris ?

thanks !

Dave


 
Reply With Quote
  #2  
Old 19-Mar-2008, 04:33 PM
hbroomhall hbroomhall is offline
Premium Member
Posts: 5,975
Points: 2032 hbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 pointshbroomhall has over 2000 points
Power: 85
None
Join Date: 08 Sep 2005
Location: Tunbridge Wells, Kent
Certifications: ECDL A+ Network+ i-Net+
WIP: Server+
Hm - can't think of an easy way for tar files, but check if your copy of Solaris has gzgrep for gzip files. (zip files in the unix world aren't normaly that common - are these really zip and not gzip?)

Otherwise create a empty temp directory and write a script to untar/unzip, then do a find + grep.

Edit: File name search is easy for tar files - tar -t + grep.

Harry.


Last edited by hbroomhall : 19-Mar-2008 at 04:34 PM.
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Computing Support Forums > Linux / Unix Discussion


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with script to delete files nugget Programming & Scripting 3 28-Feb-2008 02:12 PM
Where to go to find this... tripwire45 The Lounge - Off Topic 3 30-Jan-2008 06:24 PM
Microsoft's Windows Home Server corrupts files Mitzs Networking 9 30-Dec-2007 11:25 PM
command line interface anyone? robbo1962 A+ 11 16-Oct-2006 07:01 PM


All times are GMT. The time now is 11:36 AM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages