≡ Menu

korn

HowTo: Find Out KSH ( Korn Shell ) Version

How do I check ksh version? How do I find out ksh version under UNIX like operating systems?
[click to continue…]

Linux: What is Dash ( /bin/dash ) Shell?

What is /bin/dash? I noticed that the default system shell /bin/sh was changed to /bin/dash. Why was this change made?
[click to continue…]

If var is defined AND NOT EMPTY, use var, otherwise set a default variable under Bash. For e.g. my script needs a parameter for output variable. It can be text or html. I set it as follows in my script

output=$1 # either text or html

However, sometime user forget to pass the parameter to my shell script and my enter logic fails. So how do I set default value to text, if no parameter passed?
[click to continue…]

KSH For Loop Examples

Q. How do I use for loop in Korn Shell under UNIX / Linux / BSD / OS X operating systems?
[click to continue…]

How To Write First UNIX Korn Shell Script Program

Can you tell me how to write a UNIX korn shell script program? I'm new to UNIX scripting and HP-UX UNIX operating system.
[click to continue…]

What Is Bourne Shell?

What is bourne shell?
[click to continue…]

What Is POSIX Shell?

What is POSIX Shell under UNIX / Linux operating systems?
[click to continue…]