On Fri, Aug 29, 2008 at 2:42 PM, Thorsten Moeller <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i want to parse files with lines from an application log.
>
> The files contain lines where the columns are separated by spaces. My
> problem now is that i just wanted to see only specific columns. But, if
> the content of one column is longer, there are less spaces to the next
> column.
>
> When i use >a: parse/all line " "< and get the part a/22 it is not
> necessarily always the 5th column depending on the number of spaces
> between the columns.

Possibly trim/lines on each line before parsing it. That will remove
extra spaces and allow you to parse on each single space.

>> trim/lines "a     b"
== "a b"

-- 
Regards,
Henrik Mikael Kristensen
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to