[WebDNA] Grep
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103977
interpreted = N
texte = --_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: quoted-printableI have the following code that combines two database fields into one and re=moves extra spaces at the same time. But this seems to also be removing th=e + (plus symbol) from the data as well, which I don't want to happen. Exam=ple, the data "DVD+RW" becomes "DVD RW". Any ideas why this might be happe=ning?[!]First - Find blank Title fields and fill them in with Description1 and D=escription2 (using grep to remove extra spaces)[/!][Search db=3Dprice2.txt&eqTitledata=3D[blank]][numfound][ReplaceFoundItems]Title=3D[grep search=3D *$&replace=3D][Description1][/gr=ep] [grep search=3D *$&replace=3D][Description2][/grep][/ReplaceFoundItems][/Search]--_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_Content-Type: text/html; charset="us-ascii"Content-Transfer-Encoding: quoted-printable
I =have thefollowing code that combines two database fields into one and removes extraspaces at the same time. But this seems to also be removing the + (pl=ussymbol) from the data as well, which I don't want to happen. Example, the d=ata “DVD+RW”becomes “DVD RW”. Any ideas why this might be happening?<=o:p>
[!]First - Find blank T=itlefields and fill them in with Description1 and Description2 (using grep toremove extra spaces)[/!]
[Searchdb=3Dprice2.txt&eqTitledata=3D[blank]][numfound]
[ReplaceFoundItems]Titl=e=3D[grepsearch=3D *$&replace=3D][Description1][/grep] [grep search=3D*$&replace=3D][Description2][/grep][/ReplaceFoundItems]
[/Search]
--_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_--
Associated Messages, from the most recent to the oldest:
--_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_Content-Type: text/plain; charset="us-ascii"Content-Transfer-Encoding: quoted-printableI have the following code that combines two database fields into one and re=moves extra spaces at the same time. But this seems to also be removing th=e + (plus symbol) from the data as well, which I don't want to happen. Exam=ple, the data "DVD+RW" becomes "DVD RW". Any ideas why this might be happe=ning?
[!]First - Find blank Title fields and fill them in with Description1 and D=escription2 (using grep to remove extra spaces)[/!][Search db=3Dprice2.txt&eqTitledata=3D[blank]][numfound]
[replacefounditems]Title=3D[grep search=3D *$&replace=3D][Description1][/gr=ep] [grep search=3D *$&replace=3D][Description2][/grep][/ReplaceFoundItems][/Search]--_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_Content-Type: text/html; charset="us-ascii"Content-Transfer-Encoding: quoted-printable
I =have thefollowing code that combines two database fields into one and removes extraspaces at the same time. But this seems to also be removing the + (pl=ussymbol) from the data as well, which I don't want to happen. Example, the d=ata “DVD+RW”becomes “DVD RW”. Any ideas why this might be happening?<=o:p>
[!]First - Find blank T=itlefields and fill them in with Description1 and Description2 (using grep toremove extra spaces)[/!]
[Searchdb=3Dprice2.txt&eqTitledata=3D[blank]][numfound]
[replacefounditems]Titl=e=3D[grepsearch=3D *$&replace=3D][Description1][/grep] [grep search=3D*$&replace=3D][Description2][/grep][/ReplaceFoundItems]
[/Search]
--_000_1F600E66EAA5A9408FF9A8ED434781A120F8C4CC7EVMBX101ihoste_--
Mark Bergkvist
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:
Limit picture size on upload (2005)
Help needed! (1998)
40,000+ items = mutiple dbs? (1999)
Help! WebCat2 bug (Ben's input) (1997)
b12 cannot limit records returned and more. (1997)
Formating Tables w/[founditems] (1998)
Possible Bug in 2.0b15.acgi (1997)
Weird problems with [SHOWIF]s (1997)
What ports does Webcatalog use (2003)
I'm having trouble using [url][interpret][math] together in lookup (1997)
New random discoveries? (2005)
Understanding texta (1997)
OT-JS question (2001)
Limit to variables being passed??? (1998)
serial number (1998)
Product Value Changes (2000)
ListFiles (1998)
Apple event reply error (-1) (1997)
WebMerchant and PCAuthorize (1998)
[WebDNA] Encrypted password issue (2009)