[Solved] `dos2unix` equivalent on OpenWrt?

Is there a replacement for it (it's available e.g. on Debian-based distributions)

Do i need to install an additional package? If yes, which one?

Thank you for your feedbacks! :slight_smile:

With kind regards,
Jan

if you're just changing end of lines from \r\n to \n on a file that you know is text (i.e. the most common case and without having the file type validation to skip binary, you can use sed.

sed -i 's/\r//' filename
1 Like

this should resolve it

sed -i 's/\r//' filename
1 Like

thank you very much! :slight_smile:

dos2unix for windows (available on sourceforge) seems also to be an alternative for it. i was successful with.

best regards,
jan

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.