Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Not able to open .gz file

Forgot Password?
 Other Distributions   Post questions about distributions that do not have their own forums in here

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-11-2009   #1 (permalink)
Just Joined!
 
Join Date: Sep 2009
Posts: 2
Talking Not able to open .gz file

Hi Experts,

I have .gz files which has data inside it like this:
Trade No. Symbol Instrument TradeDate ExpDate OptionType StrikePrice Time Price Qty
106263 NIFTY OPTIDX 1-Apr-2005 20050428 CE 1940 12:36:06 108 1000
97100 NIFTY OPTIDX 1-Apr-2005 20050428 CE 1940 12:19:06 107 1000
64968 NIFTY OPTIDX 1-Apr-2005 20050428 PE 1930 11:10:35 14.95 400
74877 NIFTY OPTIDX 1-Apr-2005 20050428 PE 1930 11:30:24 13.45 800

There are more than 2 lakh such rows in a single .gz file, in each row fields delimited by "|" character.

I have to process the data contained in more than 2000 such .gz files. For each PE entry I have to find CE entry with matching TradeDate, ExpDate,StrikePrice, and Time difference of less than 30 seconds. In the output file I need such matching PE and CE in a single row.

Again,i use netbook Linpus Linux Lite is the OS, in that a program called Xarchiver easily decompresses the file.

Any hint how to open this file...

Regards,
Rafikul
rafikul is offline  


Reply With Quote
Old 09-11-2009   #2 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,056
Welcome to the forums!

Check out gzip and gunzip for file compression and extraction:

Code:
gunzip your_file.gz
The gzip home page
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 09-13-2009   #3 (permalink)
Just Joined!
 
Join Date: Sep 2009
Posts: 2
Hi OZAR,
Thanks for the reply.
I already decompress the .gz file.But i am not able to see its content.After extraction i got the below information:-
Trade No. Symbol Instrument TradeDate ExpDate OptionType StrikePrice Time Price Qty
106263 NIFTY OPTIDX 1-Apr-2005 20050428 CE 1940 12:36:06 108 1000
97100 NIFTY OPTIDX 1-Apr-2005 20050428 CE 1940 12:19:06 107 1000
64968 NIFTY OPTIDX 1-Apr-2005 20050428 PE 1930 11:10:35 14.95 400
74877 NIFTY OPTIDX 1-Apr-2005 20050428 PE 1930 11:30:24 13.45 800

Kindly give me some hint so that i am able to process the data.

Regards,
Rafikul
rafikul is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:10 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2