Need script

I need bash script in the below scenario.

Menu

  1. Upload trace file and alert log

  2. upload sundiag

  3. upload diagcollection.sh

  4. exit

  5. Upload trace file and alert log

input the line number and search the .trc files then
Input the gateway server ip and transfer that file to gateway server through scp.

  1. Upload sundiag

run the sundiag script under - /opt/oracle.Supportool/sundiag.sh and
Input the gateway server ip and transfer that file to gateway server through scp.

  1. Upload diagcollection.sh

run the diagncollection.sh under /opt/oracle.Supportool/diagcollection.sh and Input the gateway server ip and transfer that file to gateway server through scp.

So, what have you tried so far..........?