Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "John Morrison" <john.r.morrison@ntlworld.com>
To: "Amer Baig" <amer.baig@ufonegsm.net>, <cygwin@cygwin.com>
Subject: RE: Help on Scripts
Date: Fri, 27 Jun 2003 11:25:25 +0100
Message-ID: <OIENKAGCMBEDKDHGANIKGEMOCNAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <095C7F20DB18664A9D9161C90F9B093A088081@isb-msc-xc01.ufonegsm.net>
Importance: Normal

> From: Amer Baig
> 
> This is first time I am using this mailing list, so please direct me to
> right list if I am putting it on wrong place. I am IT professional
> working in a telecom sector.
> 
> I have installed Cygwin on Windows Xp. I have file in a folder with
> names like PPD.20030116.0298, PPD.20030116.0299 , PPD.20030117.0298 etc.
> Each file contains calls against a Mobile Number. I can grep those
> record from each file. The file name depicts the date. I am I am asked
> to grep call details of Mobile number 5100025 for 16 Jan 2003. I need to
> find files for such dates then need to open each file and have to grep
> for 5100025. I need to write scripts which solve the purpose. Can
> anybody help me?

<UNTESTED>

find . -name '*.20030116.*' | xargs grep 5100025

</UNTESTED>

J.

--
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/

