Advertisement

01.15.2008 at 08:28AM PST, ID: 23084405 | Points: 50
[x]
Attachment Details

Easy script to parse and analyse text files needed

Tags: unix shell
Hi,

Unix sheel script or equivalent (maybe perl?)
 I have a bunch of zipped and unzipped text files with the same prefix that need to be parsed to select only the ones i need based on a string on a specific position, then i need to look all all the rows selected and keep 2 seperate strings in there.. finally the strings kept need to be grouped so i can simply have counts.  I don't wish to send this to a database.

For the script you can say that i need to keep the lines which have "foo" starting at the 10th caracter.
Then i need to keep string "name1" and "name2".

The files are big so if possible nothing outputted except the results.
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: beaudoin_n
Question Asked On: 01.15.2008
Participating Experts: 3
Points: 50
Views: 0
Translate:
Loading Advertisement...
01.15.2008 at 07:54PM PST, ID: 20669118

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2008 at 06:33AM PST, ID: 20681604

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 08:52AM PDT, ID: 21471896

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628