RE: sed and dos format

2004-08-25 Thread Hannu E K Nevalainen
Brian wrote: > Regarding efficiency, I am strictly talking about the code path. > Having Cygwin add a \r when the file is written the first time should > be more efficient than reprocessing the whole thing after it's been > processed the first time, or at the least reparsing the lines in an > outpu

Re: sed and dos format

2004-08-24 Thread Brian Dessent
Hannu E K Nevalainen wrote: > james pentland also wrote: > > this makes sed unusable or undesirable for a large > > number of files i might want to edit. > > I don't take this as an implication of 'bulk' edits. So your "many files" > falls on this. Also; using sed implies automatic changes. My r

RE: sed and dos format

2004-08-24 Thread Hannu E K Nevalainen
Brian Dessent wrote: > Hannu E K Nevalainen wrote: > >> You wrote: >>> james pentland wrote: >>> sed has the unfortunate property that it reduces dos format line endings to unix format line endings. >>> >>> Use a text mode mount. >> >> Using a sledgahammer for a nail? >> Better to use un

Re: sed and dos format

2004-08-23 Thread Brian Dessent
Hannu E K Nevalainen wrote: > You wrote: > > james pentland wrote: > > > >> sed has the unfortunate property that it reduces dos > >> format line endings to unix format line endings. > > > > Use a text mode mount. > > Using a sledgahammer for a nail? > Better to use unix2dos A.K.A. u2d. I disag

RE: sed and dos format

2004-08-23 Thread Hannu E K Nevalainen
You wrote: > james pentland wrote: > >> sed has the unfortunate property that it reduces dos >> format line endings to unix format line endings. > > Use a text mode mount. > > Brian Using a sledgahammer for a nail? Better to use unix2dos A.K.A. u2d. /Hannu E K Nevalainen, B.Sc. EE Microcomput

Re: sed and dos format

2004-08-22 Thread Brian Dessent
james pentland wrote: > sed has the unfortunate property that it reduces dos > format line endings to unix format line endings. Use a text mode mount. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: