I have a bash script which parse text files. In these text files some lines contains a new line character, when I open the file with Vim it looks like this:
data 1=part 1 ^M part 2 data 2=part 1
I inserted the
^M character in vim thanks to Ctrl+vEnter.
The script will consider each line of the file as the description of a data and will understand that
data 1 is a text containing a new line.
Now my coworked need to create the same kind of file but he won't use Vim:
- If he uses enter instead of Ctrl+vEnter that will create a new line and my script will not work properly (considering both part of
data1as two separate data lines).
- If he insert
\rmanually the script will considering that
data 1is a single line of text containing the character
rwithout special meaning.
How can he produce the same file with an editor like notepad++? I.e. how can he add a new line character which will not be interpreted by notepad++
Note that my question is about doing it with notepad++ because modifying the script would be an enormous inconvenient.