Posted: Fri Oct 21, 2005 7:40 am Post subject: Deleting lines
Hi Edo,
Could you please advice if the following is possible:
I want to delete (from a TXT file) all lines beginning with "a patern".
Cannot find how to do it...
The problem is that there is no way (or I do not know?) to indicate end_of_line...
Posted: Fri Oct 21, 2005 6:31 pm Post subject: Re: Deleting lines
Leo wrote:
Hi Edo,
Could you please advice if the following is possible:
I want to delete (from a TXT file) all lines beginning with "a patern".
Cannot find how to do it...
The problem is that there is no way (or I do not know?) to indicate end_of_line...
Leo
Something like this?
Or you just want me to help you write your own?
This one is extremely fast - good for huge files! Actually it doesn't read file a line by line
Posted: Fri Oct 21, 2005 8:40 pm Post subject: Re: Deleting lines
Edo wrote:
Something like this?
I'll try it immediately!
Edo wrote:
Or you just want me to help you write your own?
Oh, I've meant "within V+"!
The problem is that "0D0A" etc. can be entered in HEX mode only, but the
ABCD*0D0A pattern does not work there!
So my idea was to add a "EOL" wildcard to global search (text mode)
Edo wrote:
This one is extremely fast - good for huge files!
You've guessed the problem!
My files are huge really - 200Kb at least each (I'm editing SatcoDX tables)!
Posted: Sat Oct 22, 2005 10:37 am Post subject: Re: Deleting lines
Leo wrote:
Oh, I've meant "within V+"!
The problem is that "0D0A" etc. can be entered in HEX mode only, but the
ABCD*0D0A pattern does not work there!
So my idea was to add a "EOL" wildcard to global search (text mode)
It would complicate the module very much!
So I made it a standalone util
Leo wrote:
Edo wrote:
This one is extremely fast - good for huge files!
You've guessed the problem!
My files are huge really - 200Kb at least each (I'm editing SatcoDX tables)!
Thanks a lot!
Maybe an option could be added to switch on/off printing to screen?
But then, the action could finish and you'd not now what happened
If anyone else is interested in Text_Line_Remover let me know and I'll mail it!
Posted: Sat Oct 22, 2005 5:29 pm Post subject: Re: Deleting lines
Edo wrote:
Leo wrote:
Oh, I've meant "within V+"!
The problem is that "0D0A" etc. can be entered in HEX mode only, but the
ABCD*0D0A pattern does not work there!
So my idea was to add a "EOL" wildcard to global search (text mode)
It would complicate the module very much!
So I made it a standalone util
But, if a file to be cleaned not from single type of lines, but must undergo a number of iterations (cleaning certain type of lines each), it appears to be not convenient to start a program again and again every time!
On the other hand, V+ can save user environment
Edo wrote:
Maybe an option could be added to switch on/off printing to screen?
But then, the action could finish and you'd not now what happened
Agree - as an option.
Edo wrote:
If anyone else is interested in Text_Line_Remover let me know and I'll mail it!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum