Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Delemeter Selection

by Polyglot (Pilgrim)
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.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764821]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-05-25 09:57 GMT
Find Nodes?
    Voting Booth?