From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13547 invoked by alias); 8 Feb 2003 22:28:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13540 invoked from network); 8 Feb 2003 22:28:44 -0000 Received: from unknown (HELO smtp03.mrf.mail.rcn.net) (207.172.4.62) by 172.16.49.205 with SMTP; 8 Feb 2003 22:28:44 -0000 Received: from 209-122-234-252.s2316.apx2.sbo.ma.dialup.rcn.com ([209.122.234.252] helo=enterprise-e.rfk.com) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.35 #4) id 18hdSl-0002tK-00; Sat, 08 Feb 2003 17:28:43 -0500 Message-Id: <4.3.1.2.20030208172536.01734450@pop.rcn.com> X-Sender: lhall@pop.rcn.com Date: Sat, 08 Feb 2003 22:28:00 -0000 To: "Rajagopalan, Raghu (CCL)" , "'cygwin@cygwin.com'" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Help with xargs and output redirection. In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2003-02/txt/msg00553.txt.bz2 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/