This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Please help!


I tried you scenario and it appears to be working.  The one thing that I notice
is that if the find returns an empty list the ls will display the working
directory.  You should add a `c' to the switches of the ls command so that you
see the ctime rather than modification time.

--- "Smith, Ron" <rlsmith@kmg.com> wrote:
> You were correct.  I have tried so many versions they are all over the
> place.  Does the pipe not work as coded below?  I get the list from the
> results of the -ctime +14 but then I get a full ls -la listing of the entire
> directory.  As I said, I am going to change the ls -la to a delete or rm so
> I am trying to make sure it works.
> 
> Thanks for your help!
> 
> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Wednesday, May 19, 1999 4:22 PM
> To: Smith, Ron; 'David Robinow'
> Cc: cygwin users
> Subject: RE: Please help!
> 
> 
> --- "Smith, Ron" <rlsmith@kmg.com> wrote:
> > This is the only way I have been able to get it to work (almost work).  I
> > can't get the LS command to work.
> > 
> > Q:\datatools\dumpdata>mount
> > Device           Directory           Type        Flags
> > q:               /q                  native      text!=binary
> > \\.\tape1:       /dev/st1            native      text!=binary
> > \\.\tape0:       /dev/st0            native      text!=binary
> > \\.\b:           /dev/fd1            native      text!=binary
> > \\.\a:           /dev/fd0            native      text!=binary
> > C:               /                   native      text!=binary
> > 
> > Q:\datatools\dumpdata>gfind /q/datatools/dumpdata -ctime +14
> > /q/datatools/dumpdata
> > /q/datatools/dumpdata/archive.logs-0.03-05-1999_20.01.41.498-217
> > /q/datatools/dumpdata/control.files-0.03-05-1999_20.00.17.123-220
> > /q/datatools/dumpdata/parm.files-0.03-05-1999_20.01.52.076-210
> > /q/datatools/dumpdata/RBS01.DBF.fn.2-0.03-05-1999_20.00.30.654-163
> > /q/datatools/dumpdata/SYSTEM01.DBF.fn.1-0.03-05-1999_20.00.46.123-68
> > /q/datatools/dumpdata/TEMP01.DBF.fn.3-0.03-05-1999_20.00.58.248-218
> > /q/datatools/dumpdata/TOOL01.DBF.fn.4-0.03-05-1999_20.01.06.779-219
> > /q/datatools/dumpdata/USER01.DBF.fn.5-0.03-05-1999_20.01.15.545-180
> > /q/datatools/dumpdata/XRT01.DBF.fn.6-0.03-05-1999_20.01.23.685-218
> > 
> > Q:\datatools\dumpdata>gfind /q/datatools/dumpdata -ctime +14 | xargs ls
> -la
> > Usage: LS [/FrqRdlt1sSvu] [files]
> > 
> -8<-
> 
> You're not getting the cygwin ls.exe.  Make sure that the cygwin bin
> directory
> is first in the PATH environment variable list.
> 
> ===
> "Earnie Boyd" <mailto:earnie_boyd@yahoo.com>
> CYGWIN RELATED HELP:
>  DOCUMENTATION: <http://sourceware.cygnus.com/cygwin/docs.html>
>        DLLHELP: <http://www.xraylith.wisc.edu/~khan/software/gnu-win32/>
> ARCHIVE SEARCH: <http://www.delorie.com/archives/> OR
>                 <http://www.eGroups.com/list/gnu-win32/>
> _____________________________________________________________
> Do You Yahoo!?
> Free instant messaging and more at http://messenger.yahoo.com
> 

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]