Code:
#!/bin/sh
# Import database schema
echo "\nImporting XYZ schema\n"
IMPDP XYZ/password SCHEMAS=XYZ REMAP_SCHEMA=XYZ:XYZ REMAP_TABLESPACE=XYZ_TBL:XYZ_TBL REMAP_TABLESPACE=XYZ_IDX:XYZ_IDX REMAP_TABLESPACE=XYZ_STG_TBL:XYZ_STG_TBL REMAP_TABLESPACE=XYZ_STG_IDX:XYZ_STG_IDX DUMPFILE=DATA_PUMP_DIR:XYZ.dmp LOGFILE=DATA_PUMP_DIR:XYZ_DATA_PUMP_IMPORT.LOG
# Display a message about the log file
echo "\nFor details, check the admin\orcl\dpdump\xx_DataPumpImport.LOG files.\n"
read
The line "#!/bin/sh" tells you which shell should interpret the script. Lines beginning with "#" are comments. The other commands are self-explaining (echo accepts C-style strings, \n = newline; read will read one line/record from the standard input and write it to some variable, if specified).
Maybe you want to try this:
http://www.linuxconfig.org/Bash_scripting_Tutorial