Re: Grepping a hostname

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47002
interpreted = N
texte = Thanks, I'll give that a try.On Tuesday, January 21, 2003, at 05:45 pm, Glenn Busbin wrote:>> I need to extract the hostname from a URL, and I'm assuming that grep >> is the best way to do it, >> As I'm a complete grep novice, I'd appreciate any pointers where to >> start. >> >> Example: >> >> host.domain.dom - I need to extract host (this will be variable in >> length) >> > > I think you want [Listwords] instead of grep. Use the . as the > delimiter. > > Glenn > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grepping a hostname (Mark Derrick 2003)
  2. Re: Grepping a hostname (Mark Derrick 2003)
  3. Re: Grepping a hostname (Glenn Busbin 2003)
  4. Grepping a hostname (Mark Derrick 2003)
Thanks, I'll give that a try.On Tuesday, January 21, 2003, at 05:45 pm, Glenn Busbin wrote:>> I need to extract the hostname from a URL, and I'm assuming that grep >> is the best way to do it, >> As I'm a complete grep novice, I'd appreciate any pointers where to >> start. >> >> Example: >> >> host.domain.dom - I need to extract host (this will be variable in >> length) >> > > I think you want [listwords] instead of grep. Use the . as the > delimiter. > > Glenn > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Mark Derrick

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[OT] Linux -> Winderz (2005) Mac: LModelDirector bug fix (1997) [OT] Internet Access (2003) acgi to plugin migration problems (2000) Bug Report, maybe (1997) Bit off subject -- Faxing orders (1997) help with duplicate records posted (1998) Re:Emailer tracking (1997) quantity minimum problem (1997) HELP! Search finding too much! (1998) Dubble Sku's in a Database (1999) Gil's in the lead (1999) [WebDNA] Is there a good file upload script available these days? (2009) E-Mail (1998) ListFields and [name] (1997) WebDNA Solutions ... sorry! (1997) WebCat editing, SiteGuard & SiteEdit (1997) Date search and sendmail (1997) Changes to the List (1997) [time] math Q (2003)