Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix output formatting

RE: Unix output formatting

From: Stankus, Paula <stankup_at_doacs.state.fl.us>
Date: Mon, 20 Mar 2006 16:39:47 -0500
Message-ID: <CEEF5BC1A4C9B648AFBEF94EE77BB0910A0297AF@tlhexchange2.doacs.state.fl.us>


I have a script that does the following:  

###########################################################

echo "EXPORT FOR $DBNAME" > $LOGFILE

echo "----------------------------------------------------" >> $LOGFILE

echo Todays date is ......................: $DATESTR      >> $LOGFILE

echo The Log File for Today is ...........: $LOGFILE      >> $LOGFILE

echo The Path for Oracle Home is .........: $ORACLE_HOME >> $LOGFILE

#echo The Oracle Sid is ...................: $ORACLE_SID   >> $LOGFILE

echo "\n"

echo The hostname is .....................: $HNAME        >> $LOGFILE

echo "\n"

echo The DBNAME is .......................: $DBNAME       >> $LOGFILE

echo "----------------------------------------------------" >> $LOGFILE

echo Begin the export process at .........: `date` >> $LOGFILE

echo  

The output in Unix lines up nicely:  

EXPORT FOR remedy


Todays date is ......................: 20060320

The Log File for Today is ...........:
/backup/exports/remedy_export.log_2006032

0

The Path for Oracle Home is .........: /oracle/app/oracle/product/10.2.0

The hostname is .....................: test

The DBNAME is .......................: remedy


----------------------------------------------------

Begin the export process at .........: Mon Mar 20 16:35:28 EST 2006

However, when the output is mailed it is off:  

EXPORT FOR remedy


Todays date is ......................: 20060320

The Log File for Today is ...........:
/backup/exports/remedy_export.log_20060320

The Path for Oracle Home is .........: /oracle/app/oracle/product/10.2.0

The hostname is .....................: test The DBNAME is
.......................: remedy


----------------------------------------------------

Begin the export process at .........: Mon Mar 20 16:35:28 EST 2006

Any suggestions on how I can make sure "the hostname" and The DBNAME are on separate lines?      
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Mar 20 2006 - 15:39:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US