delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/08/17:28:52

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
Message-Id: <4.3.1.2.20030208172536.01734450@pop.rcn.com>
X-Sender: lhall AT pop DOT rcn DOT com
Date: Sat, 08 Feb 2003 17:25:56 -0500
To: "Rajagopalan, Raghu (CCL)" <RRajagopalan AT carnival DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Help with xargs and output redirection.
In-Reply-To: <C0208210EFA6C243ABDF7AC051539092103EC609@cclmailbox3.carni
val.com>
Mime-Version: 1.0

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 AT rfk DOT 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/

- Raw text -


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