Grep doesn't work the same?

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63268
interpreted = N
texte = It seems to me that I always used to use grep like this to get rid of all the useless cr's in my webdna templates, and the result when viewing source in a browser was a very stripped down page of html with no wasted characters in it ... but for some reason this doesn't seem to work any more: [grep search=%0D&replace=] The entire page contents are here ... [/grep] Does anyone have an explanation why? Is there a new grep library in webdna that doesn't work the same as the old one? Does anyone know how to strip out cr's from templates since this doesn't seem to work any more? I can save my templates with unix line endings (lf's) instead of MacOS line endings (cr's) of course, so maybe the solution here is to find a way to remove the lf's instead of cr's. Unfortunately I have never been able to get grep to remove the lf's by using a similar technique: Using [grep search=%0A&replace=] has always failed for me ... :( If anyone has a solution that will strip out all the cr's and/or lf's I would be grateful if you will post it here so I can try it. Thanks! 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep doesn't work the same? ( John Peacock 2005)
  2. Grep doesn't work the same? ( Kenneth Grome 2005)
It seems to me that I always used to use grep like this to get rid of all the useless cr's in my webdna templates, and the result when viewing source in a browser was a very stripped down page of html with no wasted characters in it ... but for some reason this doesn't seem to work any more: [grep search=%0D&replace=] The entire page contents are here ... [/grep] Does anyone have an explanation why? Is there a new grep library in webdna that doesn't work the same as the old one? Does anyone know how to strip out cr's from templates since this doesn't seem to work any more? I can save my templates with unix line endings (lf's) instead of MacOS line endings (cr's) of course, so maybe the solution here is to find a way to remove the lf's instead of cr's. Unfortunately I have never been able to get grep to remove the lf's by using a similar technique: Using [grep search=%0A&replace=] has always failed for me ... :( If anyone has a solution that will strip out all the cr's and/or lf's I would be grateful if you will post it here so I can try it. Thanks! 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/ Kenneth Grome

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:

Workaround for Emailer doubled bcc messages (1998) Am I going senile? (Price recalc based on quantity) (1997) OT: Time Tracking (2003) required fields (1999) Need help with emailer- 2 issues (1997) [WebDNA] [OT] File structure for purchased downloads (2010) MacAuthorize order data fields WAS:How To question... (1997) list cookies and list http headers (1997) Re(2): MASTER_STORE revision (2002) Download URL & access on the fly ? (1997) donation (2000) Security (2000) WebCat2: Items xx to xx shown, etc. (1997) Navigator 4.01 (1997) [WebDNA] DNA suffix (2008) Setting up shop (1997) [WebDNA] [sendmail] attachment on unix (2014) Pithy questions on webcommerce & siteedit (1997) [WriteFile] problems (1997) carriage returns in data (1997)