Re: Using Data From Tab Delimited Text File
Re: Using Data From Tab Delimited Text File
- Subject: Re: Using Data From Tab Delimited Text File
- From: email@hidden
- Date: Tue, 6 Nov 2001 22:30:15 -0600
Hey Les,
At 09:30 +1000 11/07/01, Les Cavanagh wrought:
>
The Web Server Log is broken up by a Perl script and files created in in
>
folders corresponding to the domains hosted.
If you're using perl anyway I'm surprised that you don't use it to grab the domains.
>
The details of the domains hosted for the purposes of the Logging is kept in
>
a Tab Delimited text file in the form:
>
>
www.domain.com name_of_logfile
>
www.domain2.com name_of_logfile2
I always use the RegEx Commands Osax for stuff like this:
----------------------------------------------------------------------
set theText to "www.domain.com name_of_logfile
www.domain2.com name_of_logfile2
www.domain3.com name_of_logfile3
www.domain4.com name_of_logfile4"
set theDoms to REMatch theText pattern "www\\..+\\.com"
--> Result:
"www.domain.com
www.domain2.com
www.domain3.com
www.domain4.com"
----------------------------------------------------------------------
--
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden