Using The Korn Shell in Scripts

For those experienced users that are ready to dive into writing some Korn shell scripts, but do not have their login shells configured for the Korn shell, make sure to add this to the top of your Korn shell script to make sure that it is executed by the Korn shell:

					#!/bin/ksh
				

Use the full pathname of ksh if it is not located in /bin.

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.