Writing/Executing a Simple Script
You can begin by creating a very simple Bourne shell script that prints a simple message such as Hello World and then exits.
Executing a “Hello World” script
1. | First, you need to start a text editor (such as vi) so you can key in your script in a text file using the vi text editor. Call this file testscript:
vi testscript
|
Get Practical UNIX 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.