Professional Documents
Culture Documents
COMMAND GROUPING
double ampersand- the command after this symbol executes only if the command bef
ore the && symbols produces a zero exit status
>> redirector - used to append output to a file
shebang (#!) - absolute pathname of the shell program
KORN SHELL
#!/bin/ksh
ls /usr/shared/tours || mkdir /usr/shared/tours
touch /usr/shared/tours/tourlist
echo tour directory and tourlist file created
Shell scripts are:
-ASCII text files
-have executable permissions set
-first line of a shell script identifies the command interpreter