Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

End of Record Marker - Windows and UNIX

Created: 07 Apr 2012 • Updated: 10 May 2012 | 2 comments
ooisk888's picture
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

Comments 2 CommentsJump to latest comment

DavidZ's picture

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

TatyanaS's picture

Try to specify the value 0x0a, it should help.

 

SOLUTION