Numbered Version of sys_check Script

The following is the sys_check script with each line numbered. This was created through vi by typing the :set number command in last line mode:

 # vi sys_check 1 #!/bin/ksh 2 #checkout version 1.0 11/25/00 3 #-------------------------------------------------------------------- 4 # Define All functions below this comment 5 #-------------------------------------------------------------------- 6 7 # Function syntax displays correct syntax for the command line 8 # when executing this script. 9 10 function syntax { 11 print -u2 Usage: "${0##*/} [-n] [-h] " \ 12 "\n\t -n: Print list of commands to be executed, do not execute." \ 13 "\n\t -h: Print help message." 14 exit 1 15 } 16 17 # Function cleanup is used as ...

Get Korn Shell Programming by Example 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.