| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <45742E9B.3080209@bonhard.uklinux.net> |
| Date: | Mon, 04 Dec 2006 14:20:11 +0000 |
| From: | fergus <fergus AT bonhard DOT uklinux DOT net> |
| User-Agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| CC: | fergus AT bonhard DOT uklinux DOT net |
| Subject: | Re: bash scripting problem |
| X-UoD-Scan-Signature: | 9b55418f29ff19117d5e5e98913b151c |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
>> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |