3

How can I add control character CR with notepad ++ to the end of all lines in ones. File containing informations such pictures graphs videos.There are two control character CR and LF in the file that I work but CR is missing at the end of each line and I have thousands of lines.

2 Answers 2

2

Go into Notepad++. Hit Control F for Find. Click on the Replace tab at the top. In the Find what: area type '\r' which represents CR. (without the single quotes) Go down to the Replace with area and type '\r\n' which represents CR LN (without the single quotes). Go down to the Search Mode and click on Extended radio button and turn this on. After this make sure you are at the top of the file with your cursor by clicking in the very top left of the corner. Now click replace all. This should do it. Now save.

1
  • I see. I'll update my answer.
    – Dale
    May 22, 2016 at 7:20
0

Replace, {search mode: rule based expression} search for \r replace with \r\n

\r is cr \n is lf

You might want to control what's happening by viewing all control codes:

View, [View symbol], [All characters]

Also you might want to start easy by searching and replacing in two operations, one occurrence at the time.

15
  • can not added with replace option
    – cengineer
    May 22, 2016 at 7:03
  • yes cant add control character with replace option
    – cengineer
    May 22, 2016 at 7:13
  • 1
    Edit -> Character Panel May 22, 2016 at 7:16
  • You're better off getting hold of the original file where at least LF is present so that you can do a bulk replace. May 22, 2016 at 7:17
  • 1
    Edit -> Character Panel -> [set cursor at the insert point] -> [double click the character you want from the list] May 22, 2016 at 7:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .