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
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.
1Replace, {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