• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Data From Tab Delimited Text File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using Data From Tab Delimited Text File (From: Les Cavanagh <email@hidden>)

  • Prev by Date: Re: Using Data From Tab Delimited Text File
  • Next by Date: Re: Using Data From Tab Delimited Text File
  • Previous by thread: Re: Using Data From Tab Delimited Text File
  • Next by thread: Re: Using Data From Tab Delimited Text File
  • Index(es):
    • Date
    • Thread