Need help with find
[1/5] from: tmoeller:fastmail:fm at: 4-Jul-2008 20:59
Hi,
this is my Problem. I have a file containig lots of lines with table
names like this:
ABO.ZUGANG_MONTH
ABO.ZUGANG
ABO.ZUGANG_YEAR
ABO.ZUGANG_MONTH_DIRECT
.......
What i need to do is to find exactly the line with ABO.ZUGANG. If i do
an find on this, the result will be ABO.ZUGANG_MONTH as it contains
ABO.ZUGANG.
HOW can i avoid that???
Any ideas??
Thanks
Thorsten
--
http://www.fastmail.fm - A no graphics, no pop-ups email service
--
http://www.fastmail.fm - A no graphics, no pop-ups email service
--
http://www.fastmail.fm - The professional email service
[2/5] from: gregg:pointillistic at: 4-Jul-2008 13:07
Hi Thorsten,
TM> this is my Problem. I have a file containig lots of lines with table
TM> names like this:
TM> ABO.ZUGANG_MONTH
TM> ABO.ZUGANG
TM> ABO.ZUGANG_YEAR
TM> ABO.ZUGANG_MONTH_DIRECT
TM> .......
TM> What i need to do is to find exactly the line with ABO.ZUGANG. If i do
TM> an find on this, the result will be ABO.ZUGANG_MONTH as it contains
TM> ABO.ZUGANG.
TM> HOW can i avoid that???
Can you append a space or newline to the end of your search string,
depending on how your file is formatted?
-- Gregg
[3/5] from: brock:kalef:innovapost at: 4-Jul-2008 15:58
How about this...
files: read/lines file-list.txt
first find files "abo.zugang"
Brock
[4/5] from: tmoeller:fastmail:fm at: 4-Jul-2008 22:17
Hi Gregg,
thanks for this idea. Sometimes the solution is so easy!! And it works!
Thorsten
On Fri, 4 Jul 2008 13:07:12 -0600, "Gregg Irwin"
<gregg-pointillistic.com> said:
> Hi Thorsten,
> TM> this is my Problem. I have a file containig lots of lines with table
<<quoted lines omitted: 15>>
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
--
http://www.fastmail.fm - A fast, anti-spam email service.
[5/5] from: petr::krenzelok::seznam::cz at: 5-Jul-2008 10:16
Thorsten Moeller napsal(a):
> Hi Gregg,
>
> thanks for this idea. Sometimes the solution is so easy!! And it works
>
and even if there would be no space you could append, then you know
exactly length of the string, so you could do:
all [
10 = length? string
find string "ABO.ZUZANG"
]
... or something like that :-)
Of course there is also parse available, but that's for another chapter :-)
-pekr-
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted