public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Help with xargs and output redirection.
       [not found] <C0208210EFA6C243ABDF7AC051539092103EC609@cclmailbox3.carni val.com>
@ 2003-02-08 22:28 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2003-02-08 22:28 UTC (permalink / raw)
  To: Rajagopalan, Raghu (CCL), 'cygwin@cygwin.com'

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Help with xargs and output redirection.
@ 2003-02-08 22:30 Rajagopalan, Raghu (CCL)
  0 siblings, 0 replies; 3+ messages in thread
From: Rajagopalan, Raghu (CCL) @ 2003-02-08 22:30 UTC (permalink / raw)
  To: 'Larry Hall (RFK Partners, Inc)',
	Rajagopalan, Raghu (CCL), 'cygwin@cygwin.com'

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Help with xargs and output redirection.
@ 2003-02-08 22:23 Rajagopalan, Raghu (CCL)
  0 siblings, 0 replies; 3+ messages in thread
From: Rajagopalan, Raghu (CCL) @ 2003-02-08 22:23 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

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.

Thanks and regards,
Raghu



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-08 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <C0208210EFA6C243ABDF7AC051539092103EC609@cclmailbox3.carni val.com>
2003-02-08 22:28 ` Help with xargs and output redirection Larry Hall (RFK Partners, Inc)
2003-02-08 22:30 Rajagopalan, Raghu (CCL)
  -- strict thread matches above, loose matches on Subject: below --
2003-02-08 22:23 Rajagopalan, Raghu (CCL)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).