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 output

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 unix2dos A.K.A. u2d. I

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 response

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 Microcomputer

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 disagree. He said he

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:

sed and dos format

2004-08-21 Thread james pentland
sed has the unfortunate property that it reduces dos format line endings to unix format line endings. thus, sed will change every line in a dos format file even if it had made no changes to the text. this makes sed unusable or undesirable for a large number of files i might want to edit. is this

sed and dos format

2004-08-21 Thread neal somos
James remarks that sed has the unfortunate property that it reduces dos format line endings to unix format line endings under cygwin and that this makes sed unusable or undesirable for a large number of files i might want to edit Cygwin-apps may be a more appropriate place for this question.