| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | "Craig McGeachie" <craig AT rhe DOT com DOT au> |
| Organization: | RHE & Associates |
| To: | cygwin AT cygwin DOT com |
| Date: | Fri, 18 May 2001 07:53:10 +1000 |
| MIME-Version: | 1.0 |
| Subject: | Re: What is the secret to locating files with the 'archive' bit set using 'find'? |
| Message-ID: | <3B04D4E6.11782.EE35A3B@localhost> |
| In-reply-to: | <20010517144523.B92@BOEKHOFF_M> |
| X-mailer: | Pegasus Mail for Win32 (v3.12c) |
On 17 May 2001, at 14:45, malcolm.boekhoff wrote:
> Does anyone know whether there is a secret test that can be made to
> enable the "find" command to locate files on an NTFS disk that have
> the "archive" bit set?
-----------> test.sh
#!/bin/sh
archived=`attrib $1 | cut -c1-1`
if [ "$archived" = "A" ]
then
exit 0
else
exit 1
fi
<-----------
$ find . -exec ./test.sh {} \; -print
-----------------+---------------------------------------------------
Craig McGeachie | #include <cheesy_tag.h>
+61 (410) 774902 | while (!inebriated) c2h5oh = (++bottle)->contents;
-----------------+---------------------------------------------------
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |