Sponsored Content
Full Discussion: convert from ksh to bsh
Top Forums UNIX for Dummies Questions & Answers convert from ksh to bsh Post 723 by Neo on Wednesday 10th of January 2001 11:58:24 AM
Old 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

difference between ksh and bsh

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

Newbie convert date ksh

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

python code...convert to ksh or sh

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

Bsh shell on 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

Need to convert ksh script to Perl

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

Convert from CSV to space padded columns (.ksh)

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

bsh problem

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

convert ksh to C program

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

convert a file from .ksh to .sh

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

Convert Hex - KSH

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
shells(4)							   File Formats 							 shells(4)

NAME
shells - shell database SYNOPSIS
/etc/shells DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser- shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root. A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines which search the file. Blank lines are also ignored. The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/ksh93, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh, /bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/ksh93, /usr/bin/pfcsh, /usr/bin/pfksh, /usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh, and /usr/sfw/bin/zsh. /etc/shells overrides the default list. Invalid shells in /etc/shells could cause unexpected behavior, such as being unable to log in by way of ftp(1). FILES
/etc/shells list of shells on system SEE ALSO
vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4) SunOS 5.11 20 Nov 2007 shells(4)
All times are GMT -4. The time now is 02:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy