February 2001
Beginner to intermediate
448 pages
9h 2m
English
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 ...Read now
Unlock full access