delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org 7EDB7386F45E |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=tlinx.org | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=cygwin AT tlinx DOT org |
Message-ID: | <5F55C670.7030004@tlinx.org> |
Date: | Sun, 06 Sep 2020 22:34:40 -0700 |
From: | L A Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird |
MIME-Version: | 1.0 |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Weird behavior in 'grep'ing for string in /proc/registry... |
X-Spam-Status: | No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
In directory /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/eventlog I wanted to list all the ".dll"s that handled various types of events. I tried /bin/grep -Pr '\.dll' but got a load of bogus error messages: /bin/grep: Group: Is a directory /bin/grep: ImagePath: Is a directory /bin/grep: Description: Is a directory /bin/grep: ObjectName: Is a directory .... --- looking at ImagePath: > ll ImagePath -r--r----- 1 65 Sep 6 22:06 ImagePath > read -r x <ImagePath > echo $x C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted --- Doesn't look like a directory. So, bug in 'grep'? I'm hoping this isn't limited to my machine... Thanks! linda -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |