hi
I have a script that mails me when certain event are logged in /var/adm/messages. When the mail reaches me there are no line breaks (its just one really long line) so I tried piping the output of the script to a text file which I run `unix2dos` on then mail myself that, but that didn't work.
also tried these in addition to unix2do to no avail
perl -p -e 's/\n/\r\n/' < unixfile.txt > winfile.txt
nawk 'sub("$", "\r")' unixfile.txt > winfile.txt
any ideas?
Thank you