On Aug 5, 2006, at 11:26 AM, Andrew Brown wrote:
On 5 Aug 2006, at 16:27, Matthew Fischer wrote:
Here's a filter that will do what you want.
Thanks, Matthew, and on a Saturday too, that has saved me hours of
work!
No problem.
Thanks too for the grep suggestions, but the problem there is (and
I failed to make this clear) there can be hundreds of lines between
one number and the next. I could see no way of dealing with the
problem with grep, short of a tortuous loop, and that seems to be
confirmed.
With a script such as this it doesn't matter how many lines there
are. You can have thousands between one number and the next. The
script will just keep using the same number until it encounters a new
one, then it will start using the new one.
What I really need is a BB spread-sheet for manipulating text, but
I expect all the people at BB can write perl in their sleep and see
no need to play down to the dumbest segment of the market.
This could be done in any language, not just PERL. I (like Ronald :)
happen to like PERL and find that it does what I need it to do. Just
take a look at some of the solutions he has posted to this list and
you can see how powerful it is. For those who want you something else
feel free - the question of which language to use is one without one
right answer.
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>