Re: Why no lf in grep?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59879
interpreted = N
texte = It is unclear what regex is used by WebDNA's grep command. Do you have the difficulty even after [url]ing the text? Can you use a convertchars on URL'ed text to match the linefeed? Unix grep at its core operates on a line by line basis so it may be a fundamental limitation of grep in WebDNA too. There are other regex editors that permit linefeed matching. I think you need to use \n for the line feed in BBEdit (you can use Applescript). sed might provide this function at the command line. Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 4 Nov 2004 21:21:40 +0800 To: "WebDNA Talk" Subject: Why no lf in grep? Grep will not find linefeed characters, even when I identify them via %0A as in this example: [grep search=%0A&replace=x] Any ideas why not, or how I can replace the linefeed characters in a text file with another character? -- Sincerely, Kenneth Grome www.kengrome.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/ ------------------------------------------------------------- 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: Why no lf in grep? ( Brian Fries 2004)
  2. Re: Why no lf in grep? ( devaulw@onebox.com 2004)
  3. Why no lf in grep? ( Kenneth Grome 2004)
It is unclear what regex is used by WebDNA's grep command. Do you have the difficulty even after [url]ing the text? Can you use a convertchars on URL'ed text to match the linefeed? Unix grep at its core operates on a line by line basis so it may be a fundamental limitation of grep in WebDNA too. There are other regex editors that permit linefeed matching. I think you need to use \n for the line feed in BBEdit (you can use Applescript). sed might provide this function at the command line. Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 4 Nov 2004 21:21:40 +0800 To: "WebDNA Talk" Subject: Why no lf in grep? Grep will not find linefeed characters, even when I identify them via %0A as in this example: [grep search=%0A&replace=x] Any ideas why not, or how I can replace the linefeed characters in a text file with another character? -- Sincerely, Kenneth Grome www.kengrome.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/ ------------------------------------------------------------- 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/ devaulw@onebox.com

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:

automating a POST (2002) [isfile] ? (1997) syntax question, not in online refernce (1997) WebCatalog f2 Installation (1997) SHOWNEXT (1999) RE: Web*SSL and WebCatalog (1997) emailer (1997) Limiting [FoundItems] (2000) [Announce]: Web server security and password protection (1997) Mac Programs (1998) RE: How to verify email address (1997) Problems with [Applescript] (1997) Eudora plug-in (1998) WebCat2: multiple currency support (1997) Bug or syntax error on my part? (1997) Newbie from and old bee (1997) multiple databases (1997) Searching for (field1 OR field2) AND field3 (2000) Emailer (1998) textarea question (1998)