Re: [^M] dos files on unix



On Thu, 21 Dec 2006 10:53:50 +0100, Yannick ROGER <yannick.roger@xxxxxxxxxxxx> wrote:
| Hi,
|
| I'm looking for how to list dos formatted files (with ^M at the end of
| lines) in a directory. What is the way to do that?
|
| Note: I don't want to apply dos2unix on each file no matter they are in dos
| or unix, I really need to detect them before.


The 'file' command should tell you if a text file is using MSDOS end of
line format.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
.



Relevant Pages