Re: grep for search, not replace

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45708
interpreted = N
texte = You can grep with replace into a temporary variable, then compare the temporary variable to the original, something like this... [text]temp=[grep search=ABC&replace=][originaltext][/grep][/text][showif [url][temp][/url]![url][original][/url]] The search string was found! [/showif]- brianAt 10:27 AM 11/25/2002, ScottR@benjerry.com wrote: >Can grep be used to just to test for the existence of a pattern, rather than >being used to replace it? -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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: grep for search, not replace (John Peacock 2002)
  2. Re: grep for search, not replace (ScottR@benjerry.com 2002)
  3. Re: grep for search, not replace (Brian Fries 2002)
  4. Re: grep for search, not replace (ScottR@benjerry.com 2002)
  5. Re: grep for search, not replace (John Peacock 2002)
  6. grep for search, not replace (ScottR@benjerry.com 2002)
You can grep with replace into a temporary variable, then compare the temporary variable to the original, something like this... [text]temp=[grep search=ABC&replace=][originaltext][/grep][/text][showif [url][temp][/url]![url][original][/url]] The search string was found! [/showif]- brianAt 10:27 AM 11/25/2002, ScottR@benjerry.com wrote: >Can grep be used to just to test for the existence of a pattern, rather than >being used to replace it? -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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/ Brian Fries

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:

Bulk Register (2004) [Sum] function? (1997) WebCatalog 3.0.4 alias crash bug? (2000) WC2b12: Yes, Formulas.db is for real (1997) [SendMail] from a form? (1998) RE: Languages (1997) WebCAT 4.x Configured with ASIP 6.3 (2001) Forcing a NEWCART (1997) Server capacity (2003) [OT] Redhat 6.1 (2003) [WebDNA] Fails to recognize comma-separated db (2010) [ConvertChars] problem (1997) Talk List Suggestions (1997) access denied problem (1997) Possible Bug in 2.0b15.acgi (1997) Internet Explorer and caching (2000) NT License trade for Mac (2000) Press Release hit the NewsWire!!! (1997) Math Function (1997) RE: WebCat and image maps (1997)