Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Prese Question: skipping spaces?

From: tmoeller:fastmail:fm at: 29-Aug-2008 14:42

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. Sample: ["0x0B22E2A0" "0" "" "" "" "" "" "" "" "" "39" "" "" "" "" "" SYSBUFFERPOOLS "" "" "" "" "SYSIBM" "" "" "9" "" "" "" "" "" "" "" "" "Perm" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "1" "" "" "" "" "" "" "" "" "4" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" ""] ["0x0DBCB6A0" "0" "" "" "" "" "" "" "" "" "40" "" "" "" "" "" SYSBUFFERPOOLNODES "SYSIBM" "" "" "0" "" "" "" "" "" "" "" "" "" Perm "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "1" "" "" "" "" "" "" "" "" "" "3" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "" "" "" "" " 0" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" "" "" "" "0" "" "" "" "" "" "" ""] Is there a way to avoid this problem or to work around??? Cheers Thorsten -- http://www.fastmail.fm - Or how I learned to stop worrying and love email again