Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Delemeter Selection

by Polyglot (Monk)
on May 19, 2009 at 04:06 UTC ( #764821=note: print w/ replies, xml ) Need Help??

in reply to Delimiter Selection

Yes. You need to select a delimiter that will not be confused with the data it is delimiting.

In your case, you probably have white space in the log file (tabs or spaces). If that is not sufficient to delimit your log, and if you need to add something, you need to choose a delimiter that will not be in your file except as your delimiter. So, if you have dollar signs in the file, do not use that as the delimiter. If you have pipes in the file, choose something else for the delimiter.

After that, you can always escape a special character and use it as a delimiter if necessary.

Common delimiters are tab , space | and #. But other characters can work well also.



Comment on Re: Delemeter Selection

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764821]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-01-26 00:45 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (186 votes), past polls