delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/03/12:31:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=HunFLHexH6pFpvXHWA8mf+wxSw99f
Lxh8qbIBrcvQJJhZv+Ia02DJbaBAZn/ZGIwuJmjE3sHvG/dMy68pAy7XnMaGwCdm
FSb93aysDyPmV1if99ugVsvIZJABqEr+NDEj6fEtasUE7/cPNxkCxeWX9e+IxLuq
i24kJWj994um0k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=VrKhUvsaXabVMtfXwvBAL9gNTFY=; b=AT+
ohAeaP7FL3/LjBLsdNdJb1WBlW1o6qYJ779UKMdmwbim2lun/cyPaaS0XweMmNqR
cirNz9vjY5bf88/F816mmaCHWJkljlm7nWAyp7xxUB564iQiGgYnI0i02PRTouas
PJnlpdSLYRs/mZW3yc9+jZiPH7KTZG6RIQMSLBg4=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=2.9.0
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fY2nhnYVZ2fP2cMCW/7/g3Cd9Ey8qtQBHegqapZgaB0=; b=YaXJ4kW5WfRPizNEsjDEN+D6viDrQaQBSzitZzbaxKqTOF4gpXiq9P5uPIQiSMeoxU IQit9TVCnWPnF6fvjrkJnmNw4plfp14LI3BIqpqRFRBrIUZ0GjTmxpYnP3zQ2352bGlG Qq/qNB8QgN2wv7uIXTFPn0Jam94Mlu9sLsdfzKsPvJHKgyG9qvwYQYHrZfN/sW0UnDsA dRK317D9uYRtKdy3phzqmwpgD2S+tO+2L/DjOUIjdPDfLQDeXVgGT7J/afkY9D+DI2lC LXd+wxuh/nzif5nxcavQ2uEdtrbhYkMGjG/0pfujLsD4lMJCV3UeUgg7xCWh7Myaa+HO 5uMg==
X-Gm-Message-State: AKGB3mI0MsSmlHB/eX2X1cd7MfWJsjw8JbexAsbEkCSRwyrt3NvzOcJK t9SJKGgkKaPfkgUfdvOHVCDod4VanmtaQt/affijKw==
X-Google-Smtp-Source: ACJfBothdeu13p/cLmvf9q7Nj3amLtmAn8RhK7FHM1wNURX6P32+9kVVfk8pFr0H7lCaR5BTGxyDiW2gJUwfYVsrPlY=
X-Received: by 10.80.146.227 with SMTP id l32mr3747047eda.114.1515000671069; Wed, 03 Jan 2018 09:31:11 -0800 (PST)
MIME-Version: 1.0
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Wed, 3 Jan 2018 09:31:10 -0800
Message-ID: <CAA5t8Vrr_GcYqaLq-1noAj7mxQ7KsMnd43k10-ef1anuCr60Tg@mail.gmail.com>
Subject: Grep can't match characters before EOL marker without ^M
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

My cygwin version appears to be "2.9.0(0.318/5/3)".

If I have a text file that has a line that ends with "abc", and I try
to grep for "abc$", it doesn't match.  I find that it does match "$"
and "abc^M$".

I've read some of the documentation about line endings in Cygwin.

I need to write some scripting that works on both Cygwin and Linux.
What do I need to do here?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019