delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/08/10:50:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 8 Jul 2003 15:50:10 +0100
From: Elfyn McBratney <elfyn AT emcb DOT co DOT uk>
X-X-Sender: elfyn AT ellixia
Reply-To: cygwin AT cygwin DOT com
To: Steve <beforewisdom AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Advice on where to look to solve a problem
In-Reply-To: <beekii$5sc$1@main.gmane.org>
Message-ID: <Pine.CYG.4.55.0307081545570.2788@ellixia>
References: <beekii$5sc$1 AT main DOT gmane DOT org>
Mail-Followup-To: cygwin AT cygwin DOT com
MIME-Version: 1.0

On Tue, 8 Jul 2003, Steve wrote:

> Hi;
>
> I'm on windows 2000 with cygwin.
>
> I need to make a script that will check all of the file modified dates
> on all of the files in a list of directories.   If any of these dates is
> older then the current date I want to print the name of the file and the
> date to a file.
>
> I'm new to bash scripting and many unix commands.  What are the commands
> that I want to loook at that could do these things for me?

`man find'
`man date'
`man bash'

There's no easy way to explain it in a nutshell, as you'll have to script the
expressions to meet your criteria. Basically, `date' will give you a date
format, `find' has options to find files according to modification time (mtime)
and you'll need bash (or ash) to script it.

Alas, this mailing list is for Cygwin problems and questions etc, so you'll need
to ask another forum/list for extra help as needed.

HTH,
Elfyn

-- 
Elfyn McBratney, EMCB
http://www.emcb.co.uk
elfyn AT emcb DOT co DOT uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019