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

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
marbarru
Posts: 2
Joined: Fri Feb 10, 2012 7:16 pm
Location: Costa Rica

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

Post 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!

:?:
-----------
MBarboza
-----------
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

File | Save As... | File Format: UNIX
marbarru
Posts: 2
Joined: Fri Feb 10, 2012 7:16 pm
Location: Costa Rica

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

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

:?:
-----------
MBarboza
-----------
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Post Reply