Hi All,
Please find my piece of code below. I am trying to grep the word SUCCESS from $LOGFILE and storing in the grepvar variable. And i am placing that variable in a file. Now if i open the file, i can see the four lines but not in seperate four line s but in a paragraph. If am mailing that log file to my mail its displaying as a paragraph.
Now i need that four lines a four line not as a paragraph.
Please see RESULT STORED IN THE variable.
Synch happend before shutdown and the synch is SUCCESS for Affinity Database Startup happend after the split and the split is in SUCCESS State
Please see my output below. The SUCCESS word has come twice in the log file. but when i am trying to mail that logfile, its coming in one line.
How to display it in two lines.
Checking the validity for Affinity daily backup on Wed Aug 26 07:43:25 EDT 2009
-------------------------------------------------------------------------------
SUCCESS- with the start time of the Paris daily backup box SUCCESS- with the Paris split date
What Operating System are you using?
How are you sending the mail?
How are you reading the mail?
If you are reading the mail with Microsoft Office Outlook, look at the following setting in that program:
Tools / Options / Email Options / "Remove extra line breaks in plain text messages".
If that option is set, uncheck the box.
The code work perfect in hp-ux with sh.
I'm not sure if i undertand you, if you put and example think is better.
This is what i'm think is you problem: