The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
multi part compressed files gffb UNIX for Dummies Questions & Answers 7 05-01-2008 08:32 PM
diff on compressed files with tar.gz ext rakeshou UNIX for Dummies Questions & Answers 7 09-20-2007 03:27 PM
Search first line of compressed file cbreiner UNIX for Advanced & Expert Users 1 09-05-2007 06:52 PM
delete compressed files from year 2005 igidttam UNIX for Dummies Questions & Answers 5 03-23-2007 04:42 PM
import compressed files using pipe pengwyn UNIX for Dummies Questions & Answers 0 07-19-2005 03:57 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 08-02-2007
swamy455 swamy455 is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 5
Line count for compressed files

Hi All,
I have requirement to count the number of records in a zipped file (*.gz) without decompressing it. I am using the following (I am unzipping to stdout and counting)

gzcat <filename>.gz |wc -l (same as gunzip -c)

I am trying to see if there is a faster and less resource consuming approach as I would be doing this on a huge set of files every day. Your help is highly appreciated.
Thanks.
-S
  #2 (permalink)  
Old 08-02-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
That is really about it.
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 06:47 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