bash scripting problem

fergus fergus@bonhard.uklinux.net
Mon Dec 4 14:20:00 GMT 2006


 >> 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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /