ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Does anybody knows a tool to convert a bash shell script to other languages. My problem is that a small script grew and now must generate a lot of ouput in many files, and bash is to slow for that.
(I could rewrite it but thought it was woth asking)
Even if such a tool exits, the resulting code wouldn't be optimized...
Also you may find that rewrite your code is faster than searching
the code converter tool
enemorales:
Thanks, I will give it a try
Edit: from the man page: shc's main purpose is to protect your shell scripts from modification or inspection.
keefaz:
Only the first time will take longer.
And even if it will not be optimised I think it will run much faster in C or perl. One benchmark I found (not that relevant but still there is a huge difference shown) http://www1.physik.tu-muenchen.de/~j...uagebench.html - bash/perl performance is 600x so I think even 'unoptimized' code will run fast.
Last edited by vladmihaisima; 07-27-2005 at 05:14 AM.
Generally I'd have to agree a re-write is prob best.
For one thing, if the script 'just grew' then it will prob benefit from a re-design anyway.
Also, as an aside, Perl comes with these 2 tools: awk2perl, sed2perl. Maybe useful (or not).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.