This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash scripting problem


>> Is there a utility like a hex editor for cygwin that can check files for the
>> "\r" line endings?


> od can display the contents of a file (I like 'od -Ax -tcz').
> Or you can use 'file', which detects CRLF line endings in text files.
> Or go for broke and use hexl-mode of emacs.

Or

grep -l "^M" <filelist>

(typed at the keyboard as ctrl-V ctrl-M). This might give you what you want ...

Fergus

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]