X-Spam-Check-By: sourceware.org Message-ID: <45742E9B.3080209@bonhard.uklinux.net> Date: Mon, 04 Dec 2006 14:20:11 +0000 From: fergus 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UoD-Scan-Signature: 9b55418f29ff19117d5e5e98913b151c Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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" (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/