01-10-2001
If you mean converting shell script between the two, this is not difficult. However, I can't recall anyone ever having free time to do such a thing. Once a shell script is written, it serves it purpose. Converting it to another scripting language (i.e KSH, SH, etc) it not something UNIX admins normally do.
Converting old SH and KSH scripts to PERL or PHP is a often worthwhile; but then again, there should be a compelling reason. If it is a homework problem, that is a different story. In class, we do a lot of seemingly meaningless exercises to learn by practice. This is not a homework board, BTW.
If you are asking about the differences learning the different shells on the command line, that depends on the features you prefer in a shell environment. I only use KSH, others use and love other shells. However, just because one loves KSH does not mean they spend time translating SH scripts to KSH.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am not that techie when it comes to unix. all i know is how to code...
kindly enlighten me regarding the difference between ksh and bsh. we are currently running scripts using ksh... what would be the implications if we need them to run using bsh?
thanks! (4 Replies)
Discussion started by: tads98
4 Replies
2. Shell Programming and Scripting
If I have
start = 02282006;
end = 03152006;
How do I get
startdate = 02/28/2006;
enddate = 03/15/2006;
Thanks, (3 Replies)
Discussion started by: britney
3 Replies
3. Shell Programming and Scripting
Helloo...
I am not much familiar with python..I found this small script in python I even do not have python on my computer...can anyone help me out to convert this into ksh or sh..
PLEASE any help I will appreciate..
here is python code..
#!/usr/bin/env python
import random # Get a... (3 Replies)
Discussion started by: amon
3 Replies
4. SCO
I everybody!
I am trying to install the bsh shell on a SCO unix and i don't know how.
The deal is that i have an old SCO unix running with an old system made with cobol, so it works with shell menus and it use a variety of a shell called bsh (Business Shell) so i search for a package to install... (5 Replies)
Discussion started by: martocapo
5 Replies
5. Shell Programming and Scripting
Guys I am new to this forum, this may seem like a cheeky request.
I have been asked by my manager to convert this ksh script to Perl. I do not have the foggiest about Perl and would appreciate any help on this.
Basically this scipt automates a recovery process for EMC Legato Networker. It will... (1 Reply)
Discussion started by: rahimm1
1 Replies
6. Shell Programming and Scripting
Hello,
Could someone please help me to convert a string(s) of comma separated values into space padded columns in .ksh?
ex.
10-21-2008,someword,blah,127.0.0.1,8,3
10-21-2008,randomword,ick,128.0.111.128,1,0
converted to
10-21-2008 someword blah 127.0.0.1 8... (6 Replies)
Discussion started by: WhotheWhat
6 Replies
7. AIX
When I use bsh, and run "set -o vi" show the following error message:
$set -o vi
-o: 0402-003 A specified flag is not valid for this command.
is my bsh problem or bsh use different command to do "set -o vi"? (2 Replies)
Discussion started by: rainbow_bean
2 Replies
8. Shell Programming and Scripting
Hi Guys...is there a way to convert a .ksh script to .C program..? (3 Replies)
Discussion started by: aggars
3 Replies
9. UNIX for Dummies Questions & Answers
hi
I have written a shell scrpit in .ksh mode. I need to convert this scritp to .sh. What things i need to check while converting the file from .ksh to .sh.
Could you please help me out.
Thanks&Reagdrs
Pavan Kumar (3 Replies)
Discussion started by: vnspkumar
3 Replies
10. Shell Programming and Scripting
Hello,
I woild like to convert hex on KSH not BASH:
I tried to use:
tmp=31
printf "\x"${tmp}""
it works on bash - Output is '1' but not on ksh.
please advice on the right syntax.
Thanks. (4 Replies)
Discussion started by: LiorAmitai
4 Replies