Page 1 of 1

How to get rid of Windows \r\n as the line terminator ?

Posted: Sun May 29, 2022 6:23 pm
by rogergravel
I understand that I can set TextPad to save new files in UTF-8 Code and UNIX file type.
How do I convert many files registered in a particular CODE/FILE TYPE setup to another CODE/FILE TYPE setup ?

Or, how do I recognize a line has \r\n as a line terminator
and change it so it ends with just \n alone ?

I know the command line in linux is : sed -i 's/\r//g' «filename.txt»
but is there a way with TextPad ?

Thanks

Posted: Mon May 30, 2022 8:44 am
by ben_josephs
The HOW-TOs forum is not the the right place to ask questions. As it says in one place:
    Instructional HowTos, posted by users. No questions here please
and in another:
    PLEASE DO NOT POST QUESTIONS HERE

But anyway:

You can change the line endings and encoding when you save a file:

    File | Save As...
        Line ending: UNIX
        Encoding: UTF-8

You would have to do this on each file you want to change. TextPad is not designed to perform bulk edits on multiple files.

PLEASE DO NOT POST QUESTIONS HERE

Posted: Mon May 30, 2022 11:07 am
by rogergravel
Please let me know where I can ask questions.
Thank you

Posted: Mon May 30, 2022 11:53 am
by ben_josephs
Visit https://forums.textpad.com/ and choose General
or go there directly:
https://forums.textpad.com/viewforum.php?f=8

Do you have further questions?

No more questions for now

Posted: Mon May 30, 2022 12:06 pm
by rogergravel
No more questions for now
Thank you.