Re: Grepping a hostname

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47001
interpreted = N
texte = >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/ 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)
>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/ Glenn Busbin

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:

WebCat2b13MacPlugIn - syntax to convert date (1997) WebCat hosting sites? (1998) Are you an WC expert? (1997) Generating Report Totals (1997) RE: Writefile outside WebSTAR hierarchy? (1997) Uh...can someone help me out with the b10? (1997) wierd [cart] action! (1997) gateway application timeouts (1998) emailer w/F2 (1997) question: webmerchant connection (1997) test (2002) Paths change questions ... (2004) WCS Newbie question (1997) emailer setup (1997) Converting Aliases to Symbolic Links (2002) international time (1997) removing commas from a preformatted number (2000) [ModDate] & [ModTime] ? (1997) Re:listfiles-looking for slick solution (1997) Re(7): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)