This project has moved and is read-only. For the latest updates, please go here.

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

Jan 20, 2014 at 9:36 AM
Edited Jan 20, 2014 at 9:41 AM

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?

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

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

Good Luck!
Mar 30, 2014 at 7:24 PM
Edited Mar 30, 2014 at 7:27 PM

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".