Red Hat Linux 6
Hi,
Is there a way I can check if a string exists in a file, then it will execute an import dump job?
if [ -e grep 'IMPORTGAIAGCICIFLAG=TRUE' /tmp/file.txt ]
then
date=(date + "%d%m%Y%H%M")
arch=$(ls -t | head -1)
mv /oldbackup/OTC/gcidev/movedump/*.log /oldbackup/OTC/gcidev/exportlog
imp \"/ as sysdba\" file=$arch fromuser=L2TCP touser=dnrtool log=impDEVgci`(date +"%d%m%Y%H%M")`.log
Regards,
Joe