Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to bulk convert all the file in a file system branch between Unix and Windows line break format?

which is the best tool to convert the CRLF to LF for my project in C++,one of the guideline is to do so before review.

share|improve this question

marked as duplicate by Gilles, manatwork, Michael Mrozek Sep 16 '12 at 17:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Try the dos2unix and unix2dos tools.

Wrap it in a shell script to match all your source files and it should be done.

share|improve this answer
thanks @gertvdijk,@Gilles – Satyendra Sep 17 '12 at 4:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.