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
Message-ID: <C0208210EFA6C243ABDF7AC051539092103EC60A@cclmailbox3.carnival.com>
From: "Rajagopalan, Raghu (CCL)" <RRajagopalan@carnival.com>
To: "'Larry Hall (RFK Partners, Inc)'" <lhall@rfk.com>,
   "Rajagopalan, Raghu (CCL)" <RRajagopalan@carnival.com>,
   "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: Help with xargs and output redirection.
Date: Sat, 8 Feb 2003 17:30:12 -0500 
MIME-Version: 1.0
Content-Type: text/plain;
	charset="ISO-8859-1"

No - not really.

-----Original Message-----
From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
Sent: Saturday, February 08, 2003 5:26 PM
To: Rajagopalan, Raghu (CCL); 'cygwin@cygwin.com'
Subject: Re: Help with xargs and output redirection.


At 05:23 PM 2/8/2003, Rajagopalan, Raghu (CCL) wrote:
>Hi,
>         I've been working on a problem and havent found a way out yet. The
>problem is as follows:
>
>I have a list of files in a folder. I want to run a perl script on each of
>them and redirect the output to the filename with a suffix (ie if there are
>5 files initially then after the script has run, there should be 10 files -
>5 original files and 5 output files)
>
>I tried 
>
>ls --color=none *.cls|xargs -i basename {}|xargs -i perl
>~/Unix/Perl/MyScript.pl \{\}.cls "> {}_Prof.cls"
>
>but this doesnt seem to work...
>
>Any help appreciated...please copy to my id.



Is this a Cygwin specific issue?



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

