Counting lines

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Counting lines

Postby othni » Tue Mar 01, 2005 1:51 am

I have a couple of big files that I need to count how many lines start with a specified text.

I only need the count, not the output if that is possible. One of the files is 4Gb.

Thank you

Othni J. Morales

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Tue Mar 01, 2005 7:42 am

Easy. Use a Special Menu\Retain lines\Retain matching lines (grep) filter.

Set the pattern to what you want to count e.g.

^starts_with

Click the option 'Output count of matches'

You'll need to purchase TextPipe to process a file that large.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Postby othni » Tue Mar 01, 2005 8:04 am

Thank you very much. I figure out the filter, except for the 'Output Count of Matches' option.

I have a registered version of Texpipe Pro

Thank you again

Othni


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests