Skip to content
Advertisement

dos2unix command

I have this script

JavaScript

I want to remove “^M” charcaters from many files which are in more subdirectories. I got this:

JavaScript

Is there somethig i’m missing?

Thanks in advance.

Advertisement

Answer

I guess you don’t need a for loop.

Here is a quick panorama of solutions for files with extension “.ext” (such commands shall be somehow restrictive)

note : ^M is obtained with CTRL-V” + “CTRL-M”

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement