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

Attachment: cygutils-1.3.2-newconvoptions.patch
Description: cygutils-1.3.2-newconvoptions.patch

--
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/

Reply via email to