Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
CX
 
Posts: n/a
Default How can I delete all blank lines from a plain text file?

I have plain text files that have an unknown number of blank lines that I
need to eliminate. Here's a small sample/section of one of them (the ... just
means that there's more text before and after the section):

....
PAMTRAK FORT WASHI
MTKT# 5544043092119 10/06
^

D10/06/2005
N70020051006
T198.00
....


As you can see there's a blank line between the one that has a single ^ on
it and the one beginning with the letter "D". I need to keep all lines that
have text, including those that have the "^" on them and delete the only
blank ones. I can do this manually, but not for files that have a bazillion
lines in them.

I opened the file in Word 2000, clicked the Show/Hide button and it seems
every single line ends with a paragraph character (whatever that reverse P
thing is called). Anyway, I tried to Find and Replace without luck because I
have no idea how to search for the blank line.

As you can see I'm stumped. Anyhow, I'm willing to use ANY application
including DOS ones to get this to happen so any non-Word suggestions are also
welcome.

Thanks to all who respond in advance!
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where did "print blank lines" option go in Office 2003??? Emily @ Siemons Mailmerge 1 April 26th 05 06:35 PM
Templates gman Page Layout 17 April 22nd 05 06:35 PM
How do I convert a "dragged and dropped" text file from an object. David Bartlett Microsoft Word Help 1 March 31st 05 08:53 PM
How to delete a blank text box from Word document? douginrrnm Microsoft Word Help 5 February 1st 05 04:59 AM
Import of text file olav Microsoft Word Help 1 December 6th 04 01:14 PM


All times are GMT +1. The time now is 08:56 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"