Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How to delete ever even-numbered line in a text file?


  • Please log in to reply
1 reply to this topic

#1 DnDer

DnDer

  • Members
  • 646 posts
  • OFFLINE
  •  
  • Local time:08:58 PM

Posted 28 April 2010 - 04:28 PM

Someone sent me a file of code, and when I put it into notepad to look it over, everything is double-spaced (line 2, 4, 6, etc is just a blank line). Pasting it into word does not remove the double-spacing, as it reads the spacing as "single." Even in notepad, the lines are double-spaced.

Is there a quick way to remove all these excessive, empty lines?

BC AdBot (Login to Remove)

 


#2 Animal

Animal

    Bleepin' Animinion


  • Site Admin
  • 35,531 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Where You Least Expect Me To Be
  • Local time:06:58 PM

Posted 28 April 2010 - 04:37 PM

I've not tried all the various edit capabilities of Editpad lite. But give that a try and see if it will eliminate the double spacing issue with some of the capabilities.

If I had time today I'd experiment, but I'm headed off to a meeting. I'll give it a try later if I can. Or maybe someone already knows.

EDIT: Looks like the function to convert double space to single spacing is only in the 'pay for' Pro version. My apologies.

The Internet is so big, so powerful and pointless that for some people it is a complete substitute for life.
Andrew Brown (1938-1994)


A learning experience is one of those things that say, "You know that thing you just did? Don't do that." Douglas Adams (1952-2001)


"Imagination is more important than knowledge. Knowledge is limited. Imagination circles the world." Albert Einstein (1879-1955)


Follow BleepingComputer on: Facebook | Twitter | Google+




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users