Exclude System entries with "ls" or "find"
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Dec 18 12:58:00 GMT 2018
On Dec 17 16:46, Steven Penny wrote:
> Compare Cygwin:
>
> $ ls -1 -N /cygdrive/c
> $Recycle.Bin
> cygwin64
> Documents and Settings
> pagefile.sys
> PerfLogs
> Program Files
> Program Files (x86)
> ProgramData
> Recovery
> System Volume Information
> Users
> Windows
>
> With Command Prompt:
>
> > dir /A:-S C:
> 2018-12-08 10:14 AM <DIR> cygwin64
> 2009-07-13 09:20 PM <DIR> PerfLogs
> 2018-12-15 06:05 PM <DIR> Program Files
> 2018-12-15 05:21 PM <DIR> Program Files (x86)
> 2018-10-31 06:07 PM <DIR> ProgramData
> 2018-11-18 01:10 AM <DIR> Users
> 2018-11-09 08:18 AM <DIR> Windows
>
> as can be seen, Command Prompt has a way to exclude System items. Does Cygwin
> have some way to do this, perhaps with "ls" or "find"?
You're asking POSIX tools to recognize DOS attributes...
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20181218/2088f883/attachment.sig>
More information about the Cygwin
mailing list