hi,
is there any good tool which will convert .bat / .csh file to .sh files automatically.
i tried first converting the batch file to csh file using batcsh12 and using csh2sh from
http://www.linux-kheops.com/doc/perl/perl-aubert/ .
the batch to csh is alright. the problem is to convert a csh to sh
while i try the original script of csh2sh the error output is
Quote:
./csh2sh.pl 1.csh 2.sh
Converting 1.csh
1.csh -- Unable to convert the line: set -a="i = ${i} + 1"
1.csh -- Unable to convert the line: goto skipme
1.csh -- Unable to convert the line: goto back2
1.csh -- Unable to convert the line: goto back1
1.csh -- Unable to convert the line: set -a="i = 0"
5 errors.
|
the the modified csh2sh gives error
Quote:
./csh2sh-rca.pl
csh2sh-rca.pl: Unable to create -: No such file or directory
|
how to solve this or is there any auto converter for this available
thanks & regards
shann