2009/9/17 erik quanstrom <quans...@quanstro.net>: > fn buildre { > re = 's:^' > for(i in `{seq 1 $1}) > re = $re ^ '([^ ][ ]*)' > re = $re ^ '([^ ]):\' ^ $1 ^ $2 ^ : > } > > - erik >
Yes, I now see yours and Roger Peppe's idea to build a regexps and then use it. That's true. Only as I look at your code, not sure if it can stand possible spaces at the beginning of a line, like 1 2 3 Thanks Ruda