Re: detecting file type



On Sat, 24 Dec 2005 11:22:00 +0100, Eric <nospam@xxxxxxxxx> wrote:

seems like one could use vi to do this, it tells you if its dos or unix
format when you load a file into it. Also, vi can convert the format ":set
ff=unix" followed by ":x"
I have heard that vi can be automated (ie so you can do this from a script)
but i have no idea how to do it

Like this:

  find . -type f | xargs dos2unix

-Enrique

.