Re: Exclude System entries with "ls" or "find"
- Date: Tue, 18 Dec 2018 11:19:52 -0500
- From: Eliot Moss <moss@xxxxxxxxxxxx>
- Subject: Re: Exclude System entries with "ls" or "find"
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
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple