Re: Dealing with return characters
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58732
interpreted = N
texte = ok, since I've eliminated HOURS of hairpulling figuring that out for you, use your time constructively:http://www.homestarrunner.com/sbemail58.html:)Brian B. BurtonI make WebDNA FUN!On Jul 9, 2004, at 2:12 PM, Patrick McCormick wrote:> Thanks. You've helped me trim my schizophrenia by at least three > personalities.>> Pat>> On Jul 9, 2004, at 2:02 PM, Brian B. Burton wrote:>>> here's the code you need based on a thingy i made to clean up that >> excuse MS calls a tab-delimited text file that Excel produces.>>>> [text]stuff=[include file=startfile][/text]>>>> [text]stuff=[grep >> search=%0A%0D%0A%0D&replace=NEWRECORD][stuff][/grep][/text]>> [text]stuff=[grep search=%0A%0D&replace=%09][stuff][/grep][/text]>> [text]stuff=[grep >> search=NEWRECORD&replace=%0A%0D][stuff][/grep][/text]>>>> [writefile file=output.db&secure=F][stuff][/writefile]>>>>>>>> Brian B. Burton>> Burton Logistics>> 973-263-3036 973-296-6862 (cell)>> Specializing in website design and development to make your customers >> exclaim:>> "Out of all the websites I visit, yours is the easiest to use!">>>>>>>>>> On Jul 9, 2004, at 1:50 PM, Patrick McCormick wrote:>>>>> I need to populate a db from text files. Text file has return >>> character between what will be each field and two returns between >>> what will become records:>>>>>> Name1>>> Addr1>>> City1, St1, Zip1>>>>>> Name2>>> Addr2>>> City2, St2, Zip2>>>>>> .>>> .>>> .>>>>>> I can convert all the returns to tabs or something else, but I need >>> to distinguish between single and double returns to maintain >>> individual records. What's the easiest way?>>>>>> Thanks,>>> Pat>>>>>>>>> ------------------------------------------------------------->>> 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/>>>>> -------------------------------------------------------------> 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:
ok, since I've eliminated HOURS of hairpulling figuring that out for you, use your time constructively:http://www.homestarrunner.com/sbemail58.html:)Brian B. BurtonI make WebDNA FUN!On Jul 9, 2004, at 2:12 PM, Patrick McCormick wrote:> Thanks. You've helped me trim my schizophrenia by at least three > personalities.>> Pat>> On Jul 9, 2004, at 2:02 PM, Brian B. Burton wrote:>>> here's the code you need based on a thingy i made to clean up that >> excuse MS calls a tab-delimited text file that Excel produces.>>>> [text]stuff=[include file=startfile][/text]>>>> [text]stuff=[grep >> search=%0A%0D%0A%0D&replace=NEWRECORD][stuff][/grep][/text]>> [text]stuff=[grep search=%0A%0D&replace=%09][stuff][/grep][/text]>> [text]stuff=[grep >> search=NEWRECORD&replace=%0A%0D][stuff][/grep][/text]>>>> [writefile file=output.db&secure=F][stuff][/writefile]>>>>>>>> Brian B. Burton>> Burton Logistics>> 973-263-3036 973-296-6862 (cell)>> Specializing in website design and development to make your customers >> exclaim:>> "Out of all the websites I visit, yours is the easiest to use!">>>>>>>>>> On Jul 9, 2004, at 1:50 PM, Patrick McCormick wrote:>>>>> I need to populate a db from text files. Text file has return >>> character between what will be each field and two returns between >>> what will become records:>>>>>> Name1>>> Addr1>>> City1, St1, Zip1>>>>>> Name2>>> Addr2>>> City2, St2, Zip2>>>>>> .>>> .>>> .>>>>>> I can convert all the returns to tabs or something else, but I need >>> to distinguish between single and double returns to maintain >>> individual records. What's the easiest way?>>>>>> Thanks,>>> Pat>>>>>>>>> ------------------------------------------------------------->>> 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/>>>>> -------------------------------------------------------------> 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/
Brian B. Burton
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:
[OT] RedHat - GNOME (2004)
Heads up, cookies *may* be outlawed in Europe (2001)
'does not contain' operator needed ... (1997)
HELP WITH DATES (1997)
Question about Webcatalog and Webstar for Mac OS X (1998)
Timer Values on [redirect] (1998)
Trouble with formula.db + more explanation (1997)
Triggers (1999)
How to verify email address (1997)
Dreamweaver Integration (1998)
Associative lookup style? + bit more (1997)
[OT] JS Libraries (2007)
[WebDNA] Count Lines (2011)
WebDNA maxing out processor (2008)
Off-topic: Message to Will Stark ... (2003)
Dynamic Pop up menu? (1997)
[BULK] [WebDNA] [BULK] which of these tags exist in 7.0 (2011)
Errata: WCS Newbie question (1997)
RequiredFields parameter (1998)
[shownext max (1997)