![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|