Problem with the dos2unix command

Patrick Monnerat Patrick.Monnerat@datasphere.ch
Fri Oct 19 10:28:00 GMT 2007


 
Charles Wilson wrote:

> If someone were to submit a patch to add an optional, "non-greedy"
mode to dos2unix it would be thoughtfully considered...


So here is it!

It adds the following new options to conv, dos2unix and unix2dos:

_ --full/--eol: in full mode (default), it behaves as ever. In eol mode,
all characters that are not part of the source endline (regarding the
conversion type) are not processed.
_ --no-check-format/--check-format: in check-format mode, do not convert
files that have their first line already ending in the desired type.
This does not work for stdin. Default is --no-check-format (behaves as
ever).

I hope you will find it useful

Regards
Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygutils-1.3.2-newconvoptions.patch
Type: application/octet-stream
Size: 9221 bytes
Desc: cygutils-1.3.2-newconvoptions.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20071019/bc1655eb/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list