I have a small piece of code on my red hat linux box like
echo $ddate";"$time";"$cpu >> /home/logfile
The output is in vi
2010-04-10 12:23:32;01
2010-04-10 12:23:32;01
2010-04-10 12:23:32;01
but when i ftp this to a windows machine and open it in notepad
i see
2010-04-10 12:23:32;01 [] 2010-04-10 12:23:32;01 [] 2010-04-10 12:23:32;01
it shows me in one line and if i copy this to excel show me in different rows.
my guess is the notepad cannot understand the newline []
is there a way i can write it differently so that it can be displayed properly in notepad.