Fix Double Space file - Delete every other line?

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:

Fix Double Space file - Delete every other line?

Postby othni » Fri Mar 25, 2005 6:29 am

What would be the best way to fix a file that, for some reason, was written with a blank line every other line.

I am thinking of using the Remove Blank lines filter.

Is that the best way?

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

Postby DataMystic Support » Wed Apr 06, 2005 11:21 am

Yes. I thought that would be obvious!
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

Guest

Postby Guest » Wed Apr 06, 2005 11:54 am

Is not the same to remove all blank lines than to remove every other line (that just happen to be bank).

There maybe blank (valid) lines that I do not want removed.

If there are two blank lines together, only one should be removed.

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

Postby DataMystic Support » Wed Apr 06, 2005 5:34 pm

Sorry! I see what you mean.

You can remove blank lines by doing an EasyPattern search replace like this:

[ capture( 0+ not cr or lf ), cr lf,
cr, lf ]

Replace with:

$1
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


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

Who is online

Users browsing this forum: No registered users and 1 guest