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