The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX equivalent to MS IIS? gmslater99 UNIX for Dummies Questions & Answers 5 11-10-2008 01:00 PM
help using zgrep shishir Shell Programming and Scripting 3 07-15-2008 07:37 AM
How to grep / zgrep to output ONLY the matching filename and line number? vvaidyan UNIX for Dummies Questions & Answers 3 03-12-2008 05:33 PM
Using Zgrep in a script VijayPrakash Shell Programming and Scripting 2 07-13-2006 10:42 AM
mcs equivalent in HP-UX vibhor_agarwali HP-UX 5 04-28-2005 11:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2009
khestoi khestoi is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 66
Zgrep equivalent-

Hi guys
I cant use zgrep on a SunOS
Do you know any alternative for it?
i need to use
zgrep -c
grep works fine
but zgrep is not supported
  #2 (permalink)  
Old 03-04-2009
Whiteboard's Avatar
Whiteboard Whiteboard is offline
Registered User
  
 

Join Date: Feb 2009
Location: @........
Posts: 111
Msg deleted

Last edited by Whiteboard; 03-04-2009 at 05:07 AM..
  #3 (permalink)  
Old 03-04-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
First, I have to say that I wasn't aware of such tool - zgrep - but I found it really useful for a specific task today. Thanks for sharing that piece of knowledge.
Now, if you want to process gzip-ed file under Solaris, you can use "gzcat FileName | grep -c Your-Pattern" as a workaround.
  #4 (permalink)  
Old 03-04-2009
khestoi khestoi is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 66
It worked great! Thanks sysgate
  #5 (permalink)  
Old 03-04-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
And on systems without gzcat, you can just 'gunzip < filename'.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0