shell scripting

hi ,

I need to write a shell script for the following requirement . its very urgent plz help mee..
Need to write shell script and it needs accept 4 arguments

4 argument need to pass to main shell script.
If 1st argument is ucsr

call      Ucsr.sh   \(in that ucsr.sh anything doesnt matter 2nd  3rd  4th\)

Else if 1st argument is ssp

   call Ssp.sh \( in that ssp.sh anything doesnt matter 2nd  3rd  4th\)

elseif if 1st argument is ucsr_final

call Ucsrfinal.sh (in that ucsrfinal.sh anything doesnt matter 2nd 3rd 4th)

else if 1st argument is fttp

call fttp.sh (in that ucsr.sh anything doesnt matter 2nd 3rd 4th)

2nd argument should take a table name

3rd argument contractor name ( should be a character)

4th argument a sequence number (should be a number)

thanks in advance..

I am not sure what you require. Something like this perhaps?

case $1 in 
  ucsr)        Ucsr.sh $2 $3 $4;;
  ssp)         Ssp.sh $2 $3 $4;;
  ucsr_final)  Ucsrfinal.sh $2 $3 $4;;
  fttp)        fttp.sh $2 $3 $4;;
esac

doent matter wat ever the script in ucsr.sh, ssp.sh, ucsrfinal.sh , fftp.sh

i need to connect like that

if ist argument is ucsr the execute ucsr.sh thats all

and same as for the other aruguments

Then just leave out $2 $3 $4 everywhere.