How to delete every 2nd line

Discussion in 'BlackHat Lounge' started by RoseDawson, Jun 26, 2012.

  1. RoseDawson

    RoseDawson Newbie

    Joined:
    Apr 22, 2012
    Messages:
    28
    Likes Received:
    3
    Hello,

    You guys know a tool that can delete every 2nd line in a txt file or every 2nd row in a csv file ?

    Thanks
     
  2. ferma231

    ferma231 Elite Member

    Joined:
    Jul 14, 2011
    Messages:
    1,698
    Likes Received:
    3,514
    Location:
    Internet
    Manualy
     
  3. ExpressFans

    ExpressFans Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2011
    Messages:
    1,507
    Likes Received:
    579
    Occupation:
    Service Provider
    Location:
    Probably on GitHub
    Home Page:
    The second line is a "Enter" try the replace symbol with... or something like that option on MS word.If the content is not to "delicate" I'll give it a try if you don't find a solution.Since you're asking I'm assuming there are tens of thousands of lines which would be a big pain in the ass to do manually.
     
  4. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    383
    Need to see an example of the lines. Is it HTML?

    If it is HTML, you can download Notepad++ and do a find and replace. For example, if it has a line break <br/> you can do a find and replace for "<br/>" and have the replace field be empty.
     
  5. kvmcable

    kvmcable Supreme Member

    Joined:
    Dec 28, 2010
    Messages:
    1,354
    Likes Received:
    2,820
    Occupation:
    24 year business owner - old school dude
    Location:
    KFC - BW3
    Open in Excel, add ASAP utilities (free), go to Columns+Rows in ASAP and first option tell it to delete all even rows.

    Done.
     
    • Thanks Thanks x 1
  6. Chlorine

    Chlorine Newbie

    Joined:
    Jun 26, 2012
    Messages:
    4
    Likes Received:
    0
    You would have to do it manually.
     
  7. sk8tavou

    sk8tavou Senior Member

    Joined:
    Aug 28, 2011
    Messages:
    1,165
    Likes Received:
    1,344
    I can code a bot to do it i think its easy :) If you want pm me with a test csv to create it :)