End of Record Marker - Windows and UNIX
Created: 07 Apr 2012 | Updated: 10 May 2012 | 2 comments
This issue has been solved. See solution.
Hi,
I am building a logfile collector using Collector Studio and naturally we need to specify the "End Of Record Marker". There are predefined constants scuh ENDOFLINE, BLANKLINE and NULL.
I have found out that if I use a UNIX formatted log file on Windows, the collector cannot function as ENDOFLINE on Windows is assumed to be "\r\n".
Is there a way for me to change the "End Of Record Marker" on Windows from "\n\r" to just "\r"?
Many Thanks
sk
Discussion Filed Under:
Comments 2 Comments • Jump to latest comment
http://vim.wikia.com/wiki/File_format
http://kb.iu.edu/data/acux.html
have a look at this two examples, i am not sure if you are after a one off change or to include it in the collector itself.
but for one off, VI is your freind , second link have a perl sample and other that you might find useful.
dz
dz
Try to specify the value 0x0a, it should help.
Would you like to reply?
Login or Register to post your comment.