shell script to create dirs

hi,

I would like to know of a shell script to create the following

A script which will take in two parameters i.e. name of file and SID and create directories named /opt/oracle/admin/$SID/{bdump,cdump,udump}. Then edit the init file and change the three lines that look like this.

background_dump_dest = "/opt/oracle/oradata/shared/odvetr2x/bdump"
core_dump_dest = "/opt/oracle/oradata/shared/odvetr2x/cdump"
user_dump_dest = "/opt/oracle/oradata/shared/odvetr2x/udump"

Make them point to the three directories that were created.

Could you please add more information?

So you would want to give two arguments first a file name and second a SID which is used to create the 3 directories like (/opt/oracle/admin/ $SID/bdump, /opt/oracle/admin/$SID/cdump, /opt/oracle/admin/$SID/udump)
But where is that file name being used?

You have metioned to edit the init file for three variables and does this part "/opt/oracle/oradata/shared/odvetr2x/" is static. Or should we update the init file like

background_dump_dest = "/opt/oracle/admin/$SID/bdump"

If possible provide us with examples

use it

echo "enter file name"
read file_name
mkdir ${file_name}"_bdump"
mkdir ${file_name}"_cdump"
mkdir ${file_name}"_udump"

As lorcan said ,can you provide more details...