Personal tools
You are here: Home Plone XP Open Source Software Review DOS format to Unix format

DOS format to Unix format

— filed under: ,

There are different tools to convert a text file from dos format to Unix format: dos2unix, unix2dos, tr, perl one line, sed, etc.

This article talked about most of the tools:

What I need now is a script to convert all text files in a folder (including sub folders) to Unix format.

$ find . -type f -exec dos2unix {} +

find all *.js files in current folder and sub folders and convert from dos format to unix format:

$ find . -name '*.js' -exec dos2unix {} +

by this way we could more specific!

Document Actions