Re: DB Line endings

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 42337
interpreted = N
texte = This means the db was created with mac line feeds and then uploaded .. You can either download into bbedit and save with unix line breaks or stop webcat and run aperl script over the files affected ..first create an alias to make life easier .. alias mac2unix perl -pi -e 'tr/\015/\012/' \!*then when you encounter a file with the wrong breaks .. % mac2unix filename.extensionyou could even do this in webcat [closedatabase db=dbname.db] [shell]mac2unix dbname.db[/shell] -I think this would work anyway ..HTH Alain> Whenever I open a database in a unix app such as pico, more or tail on > our new OSX machine; > > I get stuff like: line1^Mline2^Mline3^M > > Rather than > line1 > line2 > line3 > > Is there a way to get webcat to store it's DB's so that regular unix > tools grok their line feeds? > > > ------------------------------------------------------------- > 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://search.smithmicro.com/ -- Alain Russell Blackpepper Interactive alain.russell@blackpepper.co.nz ph. 09 520 6280------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: DB Line endings (Aaron Lynch 2002)
  2. Re: DB Line endings (Alain Russell 2002)
  3. DB Line endings (Aaron Lynch 2002)
This means the db was created with mac line feeds and then uploaded .. You can either download into bbedit and save with unix line breaks or stop webcat and run aperl script over the files affected ..first create an alias to make life easier .. alias mac2unix perl -pi -e 'tr/\015/\012/' \!*then when you encounter a file with the wrong breaks .. % mac2unix filename.extensionyou could even do this in webcat [closedatabase db=dbname.db] [shell]mac2unix dbname.db[/shell] -I think this would work anyway ..HTH Alain> Whenever I open a database in a unix app such as pico, more or tail on > our new OSX machine; > > I get stuff like: line1^Mline2^Mline3^M > > Rather than > line1 > line2 > line3 > > Is there a way to get webcat to store it's DB's so that regular unix > tools grok their line feeds? > > > ------------------------------------------------------------- > 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://search.smithmicro.com/ -- Alain Russell Blackpepper Interactive alain.russell@blackpepper.co.nz ph. 09 520 6280------------------------------------------------------------- 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://search.smithmicro.com/ Alain Russell

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:

Carts & Refering URLs (1997) Forms Search Questions (1997) [SHOWIF AND/OR] (1997) WriteFile Formatting (2000) WC Web* performance (was: Advice on MacOS & TCP...) (2000) [ModDate] & [ModTime] ? (1997) WebCatalog/Mac 2.1b2 New Features (1997) Performance: deafening silence (1999) FlushDatabase Suggestion (1998) WebCat editing, SiteGuard & SiteEdit (1997) Been meaning to ask... (1997) Million product store (2003) extending webcatalog (1997) SUMM=T does not summarize by the sort parameters ... (2003) [WebDNA] [hideif]'s not working in [sendmail] (2008) Pirated WebCat? NOT... (2003) shipping & multiple comparisons? (2000) [OT] SSL security in browser (2005) FORMS: Returning a specific page (1997) web delivery (1997)