Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mutiple commands for if, elif command

Status
Not open for further replies.

byuen

Programmer
May 14, 2003
6
US
hi,
im creating a a korn shell script , and when i use the "if, elif" command, it only executes the first command immediately after the if statement

so this is what i want to do:

if ((some condition)) then
command1;
command 2;
elif((some condition)) then
command 3;
command 4;
etc...

what is the syntax for that???

thanks, much help is appreciated
 
FORGET ITTT....STUPID MISTAKE SORRY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top