[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text Manipulation
Thanks, Randy,
but the fields I need are not all the same size. How to do that?
Also, I forgot to mention
that some lines have blanks in them in
other areas as well. Will that affect the splitting of $1, or should it be
$0?
Tyler
>
>There is probbly an easier way to do this...
But here is one way.
>
>You could do something simple in perl like
this:
>
>
>while (<>)
>{
> s/(\w\w\w\w\w\w\w)/$1 /g;
>print;
>}
>
>This will break the line into groups of 7
characters. You can modify this slightly to do what you want.
>
>Randy
>