View+ Forum Index View+
Review http://mypsion.ru/viewplus.php
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Join! (free) Join! (free)
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deleting lines

 
Post new topic   Reply to topic    View+ Forum Index -> Ask & Answer
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.






Posted:     Post subject:

Back to top
Leo



Joined: 11 Aug 2005
Posts: 77



PostPosted: Fri Oct 21, 2005 7:40 am    Post subject: Deleting lines Reply with quote

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
Back to top
View user's profile Send private message
Edo



Joined: 10 Aug 2005
Posts: 390


Location: Prismen - Vis

PostPosted: Fri Oct 21, 2005 6:31 pm    Post subject: Re: Deleting lines Reply with quote

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 Wink

Edo
Back to top
View user's profile Send private message Send e-mail
Leo



Joined: 11 Aug 2005
Posts: 77



PostPosted: Fri Oct 21, 2005 8:40 pm    Post subject: Re: Deleting lines Reply with quote

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+"! Smile
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) Smile
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!

Leo
Back to top
View user's profile Send private message
Edo



Joined: 10 Aug 2005
Posts: 390


Location: Prismen - Vis

PostPosted: Sat Oct 22, 2005 10:37 am    Post subject: Re: Deleting lines Reply with quote

Leo wrote:

Oh, I've meant "within V+"! Smile
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) Smile


It would complicate the module very much!
So I made it a standalone util Wink

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 Wink

If anyone else is interested in Text_Line_Remover let me know and I'll mail it!

Edo
Back to top
View user's profile Send private message Send e-mail
Leo



Joined: 11 Aug 2005
Posts: 77



PostPosted: Sat Oct 22, 2005 5:29 pm    Post subject: Re: Deleting lines Reply with quote

Edo wrote:
Leo wrote:

Oh, I've meant "within V+"! Smile
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) Smile


It would complicate the module very much!
So I made it a standalone util Wink

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 Very Happy

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 Wink

Agree - as an option.
Edo wrote:

If anyone else is interested in Text_Line_Remover let me know and I'll mail it!

I'll announce it at MyPsion now!
Back to top
View user's profile Send private message
Edo



Joined: 10 Aug 2005
Posts: 390


Location: Prismen - Vis

PostPosted: Tue Oct 25, 2005 4:30 pm    Post subject: Reply with quote

Text Line Remover 1.2 - a special order from Leo Cool



Edo
Back to top
View user's profile Send private message Send e-mail
Jonas



Joined: 10 Aug 2005
Posts: 74


Location: Stuttgart, Germany

PostPosted: Tue Oct 25, 2005 4:55 pm    Post subject: Reply with quote

Might you pass it to me? Twisted Evil

Does it only empties a line or really removes it:
Before:
Code:
Test
Test2
Test

After:
Code:
Test

Test


Or

Before:
Code:
Test
Test2
Test

After:
Code:
Test
Test


Anyway, I'd like to have it Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Edo



Joined: 10 Aug 2005
Posts: 390


Location: Prismen - Vis

PostPosted: Tue Oct 25, 2005 5:07 pm    Post subject: Reply with quote

Jonas wrote:
Might you pass it to me? Twisted Evil


It is still in development! Mailing it to you anyway Rolling Eyes

Jonas wrote:

Does it only empties a line or really removes it:
Before:
Code:
Test
Test2
Test

After:
Code:
Test

Test


Or

Before:
Code:
Test
Test2
Test

After:
Code:
Test
Test


Anyway, I'd like to have it Wink


After:
Code:
Test
Test


Edo


Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    View+ Forum Index -> Ask & Answer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum
Free Web Counter