Counting lines

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

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

Counting lines

Post by othni »

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: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

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.
othni
Posts: 34
Joined: Tue Mar 01, 2005 1:47 am
Location: San Juan, Puerto Rico
Contact:

Post by othni »

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
Post Reply