Help with xargs and output redirection.

Rajagopalan, Raghu (CCL) RRajagopalan@carnival.com
Sat Feb 8 22:23:00 GMT 2003


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/



More information about the Cygwin mailing list