Re: DB Line endings

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 42341
interpreted = N
texte = This solution ROCKS Alain! It will be useful for what I want, AND we were looking for a way to do just this with some files we're transferring so it will definitely help us with that too. Thank you so muchOn 8/7/02 1:10 AM, Alain Russell mashed the following keys :> 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.extension > > you 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/ > ------------------------------------------------------------- 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 solution ROCKS Alain! It will be useful for what I want, AND we were looking for a way to do just this with some files we're transferring so it will definitely help us with that too. Thank you so muchOn 8/7/02 1:10 AM, Alain Russell mashed the following keys :> 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.extension > > you 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/ > ------------------------------------------------------------- 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/ Aaron Lynch

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:

redirect & arguments (2001) [WebDNA] ONLY the FIRST continuous run of numeric chars? (2008) The [shownext] limitations (2002) page redirect in webDNA (1997) Searching Numbers (2004) lockup db's (2000) The IBC root beer has arrived! (1997) credit card authorization question (1997) [showif] with ! (2000) WebCat cannot handle compatible search parameters? (1997) Follow-Up to: Removing [showif] makes a big difference in speed (1997) WebCat for mass emailings (1997) WebCatalog 3.0.8 Mac OS (2000) Associative lookup style? (1997) Generating Report Totals (1997) WebDNA 5 - Privacy Issue (Built in sniffer) (2003) WebDNA Book? (2003) [WebDNA] WebDNA and MAMP/Apache (Mac) (2018) The beginning (1997) webcat NT (1998)