Can I convert the line delimiters from Windows (\r\n) to Unix (\n) with the GUI?

Jan 20, 2014 at 8:36 AM
Edited Jan 20, 2014 at 8:41 AM
Hi,

I tried to convert the line delimiters of some property files from Windows to Unix. I turned on "Use regular expressions" and entered in the Find field: \r\n. The files are correctly identified. So that works. My Replace string is \n. The result is that fnr.exe replaces the existing Windows line delimiter with the String \n. It does not write the Unix delimiter. Also Ctrl+J will be replaced by \n in the result.

Can you please help me to find the solution?

Greets
Mar 30, 2014 at 6:20 PM
This works for me...

--useRegEx --find "(?isx-mn)\r+(?=\n|\z)" --replace ""

Good Luck!
Coordinator
Mar 30, 2014 at 6:24 PM
Edited Mar 30, 2014 at 6:27 PM
Hi,

To be able to replace with "\n" you can to use new feature in 1.6 called "Use escape chars".

Just disable "Use regular expressions" and enable "Use escape chars" then use Find field "\r\n" and Replace field "\n".

Eric