Copyright 2002,2003 A.P. Lawrence
"fi" needs to be the last line of this script.
Bash shell if statements take the general form of
if somecondition then dosomething else dosomethingelse fiSee man bash
What about tcsh? Well, tcsh really is a lousy scripting shell (which is why system shell scripts use sh or bash on almost ALL Unixes including Mac OS X), but that syntax is similar:
if ( expression ) then dosomething dosomething else dosomethingelse endif
Add your comments