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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=FSwEsTRaY/yZjAsG Cw30tr12CDasWGKKxV4idYtkq1VzwqDVE7HknkEFVXdtRzJtE9LcRB9CgsVntAmk d9aeQrSl4Dwyj3/5XNJRF0QEPmhSCn4KogA4+RRaSIWuLAdLPUrVr1Ql6tcnEzL+ qDV/3eCF2c5VLP4a67kx15zDhC0= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=DmMxmrQChd32je5VkEeop4 d6QDs=; b=g8nHJ7PO+uKggb2P59pXyxXK8OQjmeunlEBk4eM0fyM1tNq14Gy3xJ pm3MAXt1b+701a7F6+jgI3oAmzo1YHSyVDirBwLQHJ665oqIt1kDhD6C8BuHDe7b j5Fg6d/6KbfCktemXkcmDkStJi5NQujKMjK+lTM+rRYhEDooT5Zhk= 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=fourth, H*Ad:D*edu, HContent-Transfer-Encoding:8bit X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: Exclude System entries with "ls" or "find" To: cygwin AT cygwin DOT com References: <5c184377 DOT 1c69fb81 DOT 7df8f DOT 9525 AT mx DOT google DOT com> <20181218081347 DOT GD28727 AT calimero DOT vinschen DOT de> <177791e4-5933-a0f0-341c-75b8b19437ea AT cs DOT umass DOT edu> <6d2b6327-96f3-9079-9cce-691999f63933 AT gmail DOT com> From: Eliot Moss Message-ID: Date: Tue, 18 Dec 2018 11:19:52 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <6d2b6327-96f3-9079-9cce-691999f63933@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 12/18/2018 10:51 AM, cyg Simple wrote: > On 12/18/2018 7:58 AM, Eliot Moss wrote: >> However, you can run DOS attrib from Cygwin, just like any Windows program, >> and parse its output.  So it would be possible to use a combination of Windows >> and Cygwin tools to do what you're seeking, though not necessarily with high >> efficiency, etc. >> > > That depends on the Windows program and whether or not it the data gets to Cygwin. I was referring to processing the textual output of the DOS command program 'attrib'. Cygwin has a wide range of POSIX style text processing tools and scripting languages. This is clearly possible. For example, if I run: attrib | grep '^...S' I get the output from attrib (all files in the current directory), filtered by those lines where the fourth character is S, which is the lines for the file with the SYS attribute set. Further parsing could extract the file name, and then (if you like) you can apply cygpath to it to convert the name from Windows syntax to POSIX, etc. Best - EM -- 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