Page 1 of 1

How to convert chr(13) -Windows Style - to chr(10) Unix Styl

Posted: Fri Feb 10, 2012 7:23 pm
by marbarru
I need to convert a lot files using the chr(13) to end the line, to chr(10) like Unix. Textpad it seems to be the right choice but how??? I've tried with many ways but nothings works!

:?:

Posted: Fri Feb 10, 2012 7:45 pm
by ben_josephs
File | Save As... | File Format: UNIX

How to convert chr(13) -Windows Style - to chr(10) Unix Styl

Posted: Fri Feb 10, 2012 7:51 pm
by marbarru
FileAs works fine but I need to do it to hundreds of files.

I need a solution using Regular Expressions and the apply it to all the files open.

:?:

Posted: Fri Feb 10, 2012 8:01 pm
by ben_josephs
TextPad doesn't provide the means to search for the individual characters in line endings.

For bulk processing use the command-line tool dos2unix (available for Windows in several versions) or write a tiny script in a suitable language.

Posted: Fri Feb 10, 2012 8:04 pm
by ben_josephs