LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2009, 07:41 AM   #1
fazanpai
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Question convert tcsh script to the bash one


I need a program for converting tcsh script to bash one.
Does anybody have it this tool?
 
Old 11-29-2009, 07:57 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I don't think a tool like that exist, due to all the nuisances the tcsh language holds. Furthermore, it would require human intervention to check the result at the end of the translating process (unless one accepts the translation as it is and runs it at risk of scrambling the entire system). Hence the best bet is to gain a good knowledge of the tcsh language, trying to interpret what the script exactly does. Then, one can freely translate it in another language.

Just out of curiosity, what this tcsh code is supposed to do? How many lines of code are they?
 
Old 11-29-2009, 08:10 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
that "tool" is called a human being. learn about bash, and do the translation manually. that's the best way to go.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quick bash script to convert flac to mp3 zuralin Programming 8 08-19-2011 03:50 AM
Bash script to convert all mp3 files to aac eeepc4gsurf Linux - Desktop 7 11-13-2009 07:25 PM
convert sh command to tcsh pru Linux - Newbie 1 03-17-2008 07:44 AM
need a bash script to batch convert .wav to .mp3 nass Slackware 15 06-23-2007 01:00 AM
Convert a Bash script to C Linh Programming 5 04-25-2004 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration