Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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]
[Discipulus]: my son was used to say being left-handed on both hands..
[erix]: ambysinistral ;)
[Discipulus]: the fun is the mother used to say ' two left hand' to describe people unabel to manual work..

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-02-19 12:19 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (264 votes). Check out past polls.