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

replacing CR and LF in text files

Feb 25, 2013 at 5:05 PM
I need to find/replace CRs or LFs characters in text files. How can I do that in command line?

Apr 25, 2013 at 9:58 AM
Edited Apr 25, 2013 at 9:58 AM
Hi Nic,

You can use Regular Expression "\r?\n" to look for one or multiple CR LFs characters.

Here is a link with more information on character escapes in regular expressions.

With fnr.exe you will need to append the following options to command line:
--cl --useRegEx --find "\r?\n"