Home

IBM has published Korn shell scripting – A beginner’s guide:

Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus

Too low to display


Video Tutorial for Korn Shell Scripting by bjamesm70.

So far, you’ve learned how to start writing a Korn shell script by writing a basic script header and defining some variables. Now it's time to start writing some Korn shell code.

Since shells may differ in syntax, a script executed successfully using one shell may fail when a different shell is used to run it. For example, a Korn Shell script (ksh) may not execute correctly if it's executed with the Bourne Shell (sh) because the latter does not understand all of the syntax used by the former.

Korn Shell Script Writing - Ohio Supercomputer Center

  • Introduction
  • What is a shell?
  • Writing your first Korn shell script
  • Variables
  • Korn shell nuts and bolts
  • Error checking
  • The dollar question mark ($?)
  • Standard in, out, and error
  • Functions
  • The case statement
  • Putting a whole script together
  • Feeding input into a script from the command line
  • E-mail from a script
  • Conclusion
  • Downloadable resources
  • Related topics
  • Comments

Freelance Unix Korn Shell Scripting by Don Walters

This is my first video. The audio and presentation are a little rough. However, the videos get better.

This video goes over:
what exactly is korn shell, how to use a print statement in a korn shell script, and how to add a comment.

To begin writing your first Korn shell script, you need to open the vi editor and add the shell name as the first line. After that, you need to build some type of script header telling users who wrote the script, what the script does, and when it was written. You can name your script anything you want, but you usually use the extension .ksh to refer to a Korn shell script. You do not have to do this, but it's good practice. The pound symbol (#) is used to comment with scripts, as shown in .