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:

pc (1997) Welcome! (2000) [Announce] Newest Commerce Site based on WebCatalog (1997) Grep Ampersands (2008) WebCatalog memory error. (1998) Order not created error (1997) Secure server question (1997) where to put code (1998) Only charge card when product shipped ? (1997) Forms Search Questions (1997) [WriteFile] problems (1997) How nuch ram??? (1997) Summary search -- speed (1997) Browser Reloads and AddlineItem (1997) Running _every_ page through WebCat ? (1997) WebCat2.0b15-to many nested [xx] tags (1997) multiple selected Checkboxes (1998) Re:2nd WebCatalog2 Feature Request (1996) Not reading code (1997) Errata: WCS Newbie question (1997)