if Command
Syntax:
if ( test-expression ) command
Example:
if ( -w $file2 ) mv $file1 $file2
Syntax:
if ( test-expression ) then
shell commands
else
shell commands
endif
Previous slide
Next slide
Back to first slide
View graphic version