Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to find a Line Feed(LF) without Carriage Return(CR) after every line

    Help wanted · · · – – – · · ·
    crlf carriage return find search
    2
    3
    4459
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aditep
      Aditep last edited by

      Newbie Question -
      I have hundred thousand row record data export from database as text file.
      I want to find a line just have only Line Feed(LF) to correct missing Carriage Return(CR) after every line

      How can I accomplish this?

      /Neo

      for example i have capture a part of a text file here

      Meta Chuh 2 Replies Last reply Reply Quote 0
      • Meta Chuh
        Meta Chuh @Aditep last edited by Meta Chuh

        welcome to the notepad++ community, @Aditep

        if you want to automatically correct/convert all mixed line feeds to cr+lf only:

        • first go to edit > eol conversion > macintosh (cr).
        • then go to edit > eol conversion > windows (cr lf)

        note: it is similar if you want to convert a document to lf line feeds only.
        just switch to any other line feed format and then back to the one you desire.

        1 Reply Last reply Reply Quote 4
        • Meta Chuh
          Meta Chuh @Aditep last edited by Meta Chuh

          @Aditep

          if you prefer to do all conversions manually, using your notepad++ find window, and want to find all lines with a missing cr only (for e.g. manual control purposes):

          open your find window and paste/set the following:
          find what: ^(.*?|^\r)\n
          search mode: “regular expression”

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors